add "list" verb to autocompleted commands
authorOlivier Le Moal <olivier.lemoal@nbs-system.com>
Thu, 27 Aug 2020 08:01:36 +0000 (10:01 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 20 Sep 2020 09:32:48 +0000 (11:32 +0200)
(cherry picked from commit 50574ed1ac2e27d8f25894c9db75bb0b4c28978f)
(cherry picked from commit e1ce367d73c82f6e7fd373fb3dd9892662f3f44a)

shell-completion/zsh/_networkctl

index 41c793d2c79c7762ed87bd2a09044400d2b49e84..c8dda4f9e81311640119e862b60e2a938569d08e 100644 (file)
@@ -21,7 +21,7 @@
             local -a _links
             cmd="${${_networkctl_cmds[(r)$words[1]:*]%%:*}}"
             case $cmd in
-                (status|lldp|delete|renew|reconfigure)
+                (list|status|lldp|delete|renew|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