Any way to get list of functions defined in zsh (like alias command for aliases)
Solution 1:
With cheating by looking at the _functions
completion function, I'm able to answer your question:
The functions are stored in an associative array functions
, so to get only the function names (k
flag for keys) in alphabetical order (o
flag for ordering) you can use
print -l ${(ok)functions}