about summary refs log tree commit diff
path: root/Completion/Zsh/Command/_command
blob: 7cfb52c2fdb1370a1bee605fdcd5256a1c785e96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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