_sd_machines: Use machinectl --no-legend

Otherwise bogus entries from the header and footer would show up in the
completion list.
This commit is contained in:
Wieland Hoffmann
2014-03-15 00:32:06 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent d895500c47
commit 3a450ec5c6
+1 -1
View File
@@ -1,6 +1,6 @@
#autoload
__get_machines () {
machinectl --full --no-pager list | {while read -r a b; do echo $a; done;};
machinectl --full --no-legend --no-pager list | {while read -r a b; do echo $a; done;};
}
local -a _machines