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

local expl

if [[ "$words[2]" = -N && CURRENT -eq 3 ]]; then
  _tags any:argument functions || return 1
  _description expl 'widget shell function'
  compadd "$expl[@]" "$@" - "${(k@)functions}" && ret=0
else
  _tags any:argument widgets || return 1
  _description expl widget
  compadd "$expl[@]" - "${(@k)widgets}"
fi