I always facepalm myself after looking up this: [Wayback] Can bash show a function’s definition? – Stack Overflow (thanks [Wayback] Benjamin Bannier!):
…
Use
type. Iffoobaris e.g. defined in your~/.profile:$ type foobar foobar is a function foobar { echo "I'm foobar" }…
typewill also expand aliases, which is a nice bonus :) – [Wayback] Esdras Lopez
–jeroen





