Help me determine what runs when I open a new Terminal window
At startup bash executes (in that order)


/etc/profile
~/.profile
~/.bash_profile
~/.bashrc


So any unexpected code should be called from one of these scripts (or a script called from one of them etc.).