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

if (( $CURRENT > 2 )); then
  shift words
  (( CURRENT -- ))
  _normal
else
  local expl

  _tags any:command commands || return 1

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