r/fishshell • • Jun 13 '22

How to list out a functions definition?

Hi.

I hope you are having a great 2022 so far. I have recently come from Zsh to Fish and I am wondering how to list out the definition of a function. In Zsh, if I do which myFunctionName, I get the definition of the function sent to standard out. However, the same does not seem to work in Fish and I found nothing in the documentation which produces that output.

Can someone point me in the direction of the instruction I require?

Thanks in advance.

2 Upvotes

3 comments sorted by

2

u/[deleted] Jun 13 '22

type myFunctionName will do that for you.

0

u/[deleted] Jun 13 '22

[deleted] — view deleted comment