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

local expl

if [[ "$words[2]" = -N && CURRENT -eq 3 ]]; then
  _description expl 'widget shell function'
  compadd "$expl[@]" "$@" - "${(k@)functions[(R)^?disabled*]}" && ret=0
else
  _description expl widget
  compadd "$expl[@]" - "${(@k)zlewidgets}"
fi