1 2 3 4 5 6 7 8
#compdef functions unfunction local expl _tags argument:any functions || return 1 _description expl 'shell function' compadd "$expl[@]" "$@" - "${(k@)functions}"