From adfc8d2650916c4119461e7b31856d8913255166 Mon Sep 17 00:00:00 2001 From: Collin L Date: Mon, 22 Jul 2024 17:36:47 +0800 Subject: [PATCH] zsh/_networkctl: remove duplicated argument for completion (#31926) It is unnecessary, which will mess the completion. (cherry picked from commit 733518b41350ce781c7e41a4c866eafb9e549e1f) (cherry picked from commit fd2a6ea0a8d4b535e4ac3645772b946906e02c7d) (cherry picked from commit 00df4dea6a3c4ba101953c1ffd39a9b16220190d) --- shell-completion/zsh/_networkctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-completion/zsh/_networkctl b/shell-completion/zsh/_networkctl index c7d1e3a365..18a0e0aa86 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