From: Olivier Le Moal Date: Thu, 27 Aug 2020 08:01:36 +0000 (+0200) Subject: add "list" verb to autocompleted commands X-Git-Tag: v247-rc1~357^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50574ed1ac2e27d8f25894c9db75bb0b4c28978f;p=thirdparty%2Fsystemd.git add "list" verb to autocompleted commands --- diff --git a/shell-completion/zsh/_networkctl b/shell-completion/zsh/_networkctl index 0245b7be1bb..13c8009887d 100644 --- a/shell-completion/zsh/_networkctl +++ b/shell-completion/zsh/_networkctl @@ -24,7 +24,7 @@ local -a _links cmd="${${_networkctl_cmds[(r)$words[1]:*]%%:*}}" case $cmd in - (status|up|down|lldp|delete|renew|forcerenew|reconfigure) + (list|status|up|down|lldp|delete|renew|forcerenew|reconfigure) _links=( "${(foa)$(networkctl list --no-legend | awk 'BEGIN{OFS=":"} {sub(/[[ \t]+/, ""); print $2,$0}' 2>/dev/null)}" ) if [[ -n "$_links" ]]; then _describe -t links 'links' _links