How do I show the definition of a function in zsh? type foo doesn\'t give the definition.
type foo
In bash:
bash$ function foo() { echo hello; } bash
If you're not quite sure what you are looking for, you can type just
functions
and it will show you all the defined functions.
Note that there are sometimes a LOT of them, so you might want to pipe to a pager program:
functions | less
to undefine a function, use
unfunction functionname