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

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

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