]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
zsh/_networkctl: remove duplicated argument for completion (#31926)
authorCollin L <lkangn.collin@gmail.com>
Mon, 22 Jul 2024 09:36:47 +0000 (17:36 +0800)
committerGitHub <noreply@github.com>
Mon, 22 Jul 2024 09:36:47 +0000 (10:36 +0100)
It is unnecessary, which will mess the completion.

shell-completion/zsh/_networkctl

index 6969797e12448028d81036328ba80fdd54ee507c..ad5b91fb838f1d2a0396cf10e99d5d37452d88b6 100644 (file)
@@ -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