fish-shell/share/functions/__fish_systemd_machines.fish
2015-07-02 14:36:48 +08:00

4 lines
206 B
Fish

# It seems machinectl will eliminate spaces from machine names so we don't need to handle that
function __fish_systemd_machines
machinectl --no-legend --no-pager list | while read -l a b; echo $a; end
end