about summary refs log tree commit diff
path: root/Completion/Builtins/_which
blob: 328f7730c2bb2cbf584e8292a55aa86178bc1630 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#compdef which whence where type

local expl

_description expl 'external command'
compadd "$expl[@]" "$@" - "${(k@)commands}" && ret=0
_description expl 'builtin command'
compadd "$expl[@]" "$@" - "${(k@)builtins}" && ret=0
_description expl 'shell function'
compadd "$expl[@]" "$@" - "${(k@)functions}" && ret=0
_description expl 'alias'
compadd "$expl[@]" "$@" - "${(k@)raliases}" && ret=0
_description expl 'reserved word'
compadd "$expl[@]" "$@" - "${(k@)reswords}" && ret=0