From: Wieland Hoffmann Date: Mon, 10 Mar 2014 14:17:32 +0000 (+0100) Subject: _sd_machines: Use machinectl --no-legend X-Git-Tag: v212~160 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=3a450ec5c6adf3057bcedd6cc19c10617abc35a5;ds=sidebyside _sd_machines: Use machinectl --no-legend Otherwise bogus entries from the header and footer would show up in the completion list. --- diff --git a/shell-completion/zsh/_sd_machines b/shell-completion/zsh/_sd_machines index 1d64d13b1..a0039ee0f 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