I cannot figure out how to find the file where a bash function is defined (__git_ps1 in my case).I experimented with declare, type, which, but nothing tells me the source file.  I read somewhere that declare can print the file name and the line number, but it was not explained how.  The help page for declare does not say it either.How can I get this information?
How to find the file where a bash function is defined?
bash