I'm working with
Virtualenv, which I found out (after a few google searches) that it creates a shell function called
deactivate in my shell.
By looking through the package's files I found how it does that, but I was curious if there's a command similar to
which which could have told me more about the shell function without me having to
grep through files.
which asdf command tells me the path where the executable
asdf is found.
which however gives no output for shell functions. Is there a similar command that displays the function's code, or source file, or something of this sort?
Bonus: I'd highly appreciate some command to list the available shell functions.