about summary refs log tree commit diff
path: root/Completion/Builtins/_command
blob: 23995dbbe8004addeb13be7193c76d64aa33d982 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#compdef command

if [[ CURRENT -ge 3 ]]; then
  compset -n 2
  _normal
else
  local expl

  _tags any:command commands || return 1

  _description expl 'external command'
  compadd "$expl[@]" "$@" - "${(k@)commands}"
fi