about summary refs log tree commit diff
path: root/Completion/Builtins/_builtin
blob: cf02093bb02a629d19eec1e337c60c3a7ff55291 (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

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