summaryrefslogtreecommitdiff
path: root/Completion/Zsh/Command/_command
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2015-05-05 23:32:59 +0200
committerAxel Beckert <abe@deuxchevaux.org>2015-05-05 23:58:59 +0200
commitdb38e167634b6c2217eec3a5aafc37c46d9e5a8d (patch)
treedaa342d423febbd3a5a7ef97053037677fab004a /Completion/Zsh/Command/_command
parent01eea47617a6e06debdb4330f92ae69f92089fd2 (diff)
parent3c3c8d3d13fd4cf6c03f81ca8dc18a1efd561728 (diff)
downloadzsh-db38e167634b6c2217eec3a5aafc37c46d9e5a8d.tar.gz
zsh-db38e167634b6c2217eec3a5aafc37c46d9e5a8d.zip
Merge branch 'upstream' into debian
Diffstat (limited to 'Completion/Zsh/Command/_command')
-rw-r--r--Completion/Zsh/Command/_command15
1 files changed, 6 insertions, 9 deletions
diff --git a/Completion/Zsh/Command/_command b/Completion/Zsh/Command/_command
index 7cfb52c2f..4e2858676 100644
--- a/Completion/Zsh/Command/_command
+++ b/Completion/Zsh/Command/_command
@@ -1,14 +1,11 @@
#compdef command
-local ret
-
# indicate if this is a precommand modifier
[[ $service = command ]] && precommands+=(command)
-if [[ CURRENT -ge 3 ]]; then
- compset -n 2
- _normal && ret=0
-else
- _path_commands "$@" && ret=0
-fi
-return ret
+_arguments \
+ '-v[indicate result of command search]:*:command:_path_commands' \
+ '-V[show result of command search in verbose form]:*:command:_path_commands' \
+ '(-)-p[use default PATH to find command]' \
+ ':command:_path_commands' \
+ '*::arguments: _normal'