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

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

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