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

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

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