projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
995c702
)
zsh/_networkctl: remove duplicated argument for completion (#31926)
author
Collin L
<lkangn.collin@gmail.com>
Mon, 22 Jul 2024 09:36:47 +0000
(17:36 +0800)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 22 Jul 2024 12:27:30 +0000
(14:27 +0200)
It is unnecessary, which will mess the completion.
(cherry picked from commit
733518b41350ce781c7e41a4c866eafb9e549e1f
)
shell-completion/zsh/_networkctl
patch
|
blob
|
history
diff --git
a/shell-completion/zsh/_networkctl
b/shell-completion/zsh/_networkctl
index 6969797e12448028d81036328ba80fdd54ee507c..ad5b91fb838f1d2a0396cf10e99d5d37452d88b6 100644
(file)
--- 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