1 2 3 4 5 6
#compdef functions unfunction local expl _wanted functions expl 'shell function' && compadd "$expl[@]" "$@" - "${(k@)functions}"