summaryrefslogtreecommitdiffstats
path: root/shell-completion/zsh
diff options
context:
space:
mode:
authorOlivier Le Moal <olivier.lemoal@nbs-system.com>2020-08-27 10:01:36 +0200
committerOlivier Le Moal <olivier.lemoal@nbs-system.com>2020-08-27 10:01:36 +0200
commit50574ed1ac2e27d8f25894c9db75bb0b4c28978f (patch)
tree381e9e4b4f3f179cad8c9a24c7d4660e84895462 /shell-completion/zsh
parentshell-completion/zsh: add missing verbs for networkctl (diff)
downloadsystemd-50574ed1ac2e27d8f25894c9db75bb0b4c28978f.tar.xz
systemd-50574ed1ac2e27d8f25894c9db75bb0b4c28978f.zip
add "list" verb to autocompleted commands
Diffstat (limited to 'shell-completion/zsh')
-rw-r--r--shell-completion/zsh/_networkctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/zsh/_networkctl b/shell-completion/zsh/_networkctl
index 0245b7be1b..13c8009887 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