I can type alias to show a list of all the aliases.
But for functions, all I can do is grep my .bash_profile
.
That only gets the ones in that file, not those defined in subsidiary files or dynamically.
Is there a more convenient way to find out what functions are currently defined?
declare -F
Function names and definitions may be listed with the
-f
option to thedeclare
builtin command (see Bash Builtins). The-F
option todeclare
will list the function names only (and optionally the source file and line number).