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

local expl

if [[ "$words[2]" = -N && CURRENT -eq 3 ]]; then
  _wanted -C -N functions expl 'widget shell function' \
      compadd "$@" - "${(k@)functions}"
else
  _wanted widgets expl widget compadd - "${(@k)widgets}"
fi