From: Collin L Date: Mon, 22 Jul 2024 09:36:47 +0000 (+0800) Subject: zsh/_networkctl: remove duplicated argument for completion (#31926) X-Git-Tag: v257-rc1~854 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=733518b41350ce781c7e41a4c866eafb9e549e1f;p=thirdparty%2Fsystemd.git zsh/_networkctl: remove duplicated argument for completion (#31926) It is unnecessary, which will mess the completion. --- diff --git a/shell-completion/zsh/_networkctl b/shell-completion/zsh/_networkctl index 6969797e124..ad5b91fb838 100644 --- a/shell-completion/zsh/_networkctl +++ b/shell-completion/zsh/_networkctl @@ -29,7 +29,7 @@ (list|status|up|down|cat|edit|lldp|delete|renew|forcerenew|reconfigure) for link in ${(f)"$(_call_program links networkctl list --no-legend)"}; do _links+=($link[(w)2]:$link); done if [[ -n "$_links" ]]; then - _describe -t links 'links' _links _links $( [[ $cmd == (edit|cat) ]] && print -- -P@ ) + _describe -t links 'links' _links $( [[ $cmd == (edit|cat) ]] && print -- -P@ ) else _message "no links" fi