[systemd-devel] [PATCH 2/2] _sd_machines: Use machinectl --no-legend

Wieland Hoffmann themineo at gmail.com
Mon Mar 10 07:17:32 PDT 2014


Otherwise bogus entries from the header and footer would show up in the
completion list.
---
 shell-completion/zsh/_sd_machines | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell-completion/zsh/_sd_machines b/shell-completion/zsh/_sd_machines
index 1d64d13..a0039ee 100644
--- a/shell-completion/zsh/_sd_machines
+++ b/shell-completion/zsh/_sd_machines
@@ -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
-- 
1.9.0



More information about the systemd-devel mailing list