Skip to content

Commit adfc8d2

Browse files
HIDE-rbluca
authored andcommitted
zsh/_networkctl: remove duplicated argument for completion (#31926)
It is unnecessary, which will mess the completion. (cherry picked from commit 733518b) (cherry picked from commit fd2a6ea) (cherry picked from commit 00df4de)
1 parent b5f3e79 commit adfc8d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell-completion/zsh/_networkctl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
(list|status|up|down|cat|edit|lldp|delete|renew|forcerenew|reconfigure)
3030
for link in ${(f)"$(_call_program links networkctl list --no-legend)"}; do _links+=($link[(w)2]:$link); done
3131
if [[ -n "$_links" ]]; then
32-
_describe -t links 'links' _links _links $( [[ $cmd == (edit|cat) ]] && print -- -P@ )
32+
_describe -t links 'links' _links $( [[ $cmd == (edit|cat) ]] && print -- -P@ )
3333
else
3434
_message "no links"
3535
fi

0 commit comments

Comments
 (0)