From: Seth Jennings Date: Tue, 11 Aug 2015 16:40:17 +0000 (-0500) Subject: shell-completion: use list-images rather than list X-Git-Tag: v225~67^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F931%2Fhead;p=thirdparty%2Fsystemd.git shell-completion: use list-images rather than list "machinectl list" only lists running machines while many of the MACHINES commands use names of images; both running and non-running. List machines from both "list" and "list-images" and use sort -u to avoid duplicates. --- diff --git a/shell-completion/bash/machinectl b/shell-completion/bash/machinectl index ad4de1789af..0d09258a0b9 100644 --- a/shell-completion/bash/machinectl +++ b/shell-completion/bash/machinectl @@ -26,7 +26,8 @@ __contains_word() { __get_machines() { local a b - machinectl list --no-legend --no-pager | { while read a b; do echo " $a"; done; }; + (machinectl list-images --no-legend --no-pager; machinectl list --no-legend --no-pager) | \ + { while read a b; do echo " $a"; done; } | sort -u; } _machinectl() {