about summary refs log tree commit diff
path: root/Completion/Builtins/_which
blob: 41e7d20fd4a1696eeb8dea015aa7a764a36f4a44 (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@)aliases}" && ret=0
_description expl 'reserved word'
compadd "$expl[@]" "$@" - "${(k@)reswords}" && ret=0