From f972b023a20e9fb67b2693ab7c5936d5c545fe55 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Sun, 25 Jan 2015 18:22:53 +0100 Subject: 34373, 34374: update completion of builtin commands, modifiers, parameter and globbing flags --- Completion/Zsh/Command/_command | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'Completion/Zsh/Command/_command') 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' -- cgit 1.4.1