]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
add "list" verb to autocompleted commands 16847/head
authorOlivier Le Moal <olivier.lemoal@nbs-system.com>
Thu, 27 Aug 2020 08:01:36 +0000 (10:01 +0200)
committerOlivier Le Moal <olivier.lemoal@nbs-system.com>
Thu, 27 Aug 2020 08:01:36 +0000 (10:01 +0200)
shell-completion/zsh/_networkctl

index 0245b7be1bbe12d1e61614920ed91d444b51bb9c..13c8009887d667021f14f48f765de71495483efe 100644 (file)
@@ -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