Sign up ×


alias function_name

I can see what the definition is for that alias. Is there a command similar for function? If not, is there a command to output entire bashrc that the current terminal is using?

share|improve this question

1 Answer 1

up vote 7 down vote accepted
typeset -f function

displays the indicated function's current definition. It works in ksh (where it originated), bash and zsh. (n.b. in zsh, type -f, which, functions and whence -f also show the function definition.)

share|improve this answer
You can also use whence -cv in zsh. The -v option is to tell you, if there is no such alias or function (or otherwise executable in you PATH) at all. If you use it a lot (as I), you could alias it to a one-word command. –  Emanuel Berg Nov 18 '12 at 20:30

Your Answer


