How do I list the functions defined in my shell?

后端 未结 8 2007
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-12 09:14

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 fi

8条回答
  •  执念已碎
    2020-12-12 09:45

    set | grep " ()"
    

    In place of grep you can also use fgrep or hgrep (hgrep is my personal favorite, it's grep but it hi-lites the 'grep-ped' result.

    hgrep can be found here: ACME Labs hgrep

提交回复
热议问题