summaryrefslogtreecommitdiff
path: root/shell-completion/zsh/_networkctl
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/zsh/_networkctl')
-rw-r--r--shell-completion/zsh/_networkctl5
1 files changed, 3 insertions, 2 deletions
diff --git a/shell-completion/zsh/_networkctl b/shell-completion/zsh/_networkctl
index ea485d653c..ab62a6d9bf 100644
--- a/shell-completion/zsh/_networkctl
+++ b/shell-completion/zsh/_networkctl
@@ -1,7 +1,8 @@
#compdef networkctl
# SPDX-License-Identifier: LGPL-2.1+
-_networkctl_command(){
+(( $+functions[_networkctl_commands] )) ||
+_networkctl_commands(){
local -a _networkctl_cmds
_networkctl_cmds=(
'list:List existing links'
@@ -34,4 +35,4 @@ _arguments \
'--no-legend[Do not print the column headers]' \
{-h,--help}'[Show this help]' \
'--version[Show package version]' \
- '*::networkctl commands:_networkctl_command'
+ '*::networkctl commands:_networkctl_commands'