~/.profile, ~/.bashrc, and ~/.bash_profile not running on new terminal start up

Two things need to happen here when using iTerm to get the loading of dotfiles to work.

First you should add the following to your .bash_profile

[[ -s ~/.bashrc ]] && source ~/.bashrc

Secondly you will need to ensure that in iTerm preferences your terminal is set to launch a login shell.

iTerm Preferences

Hope this helps!


Newer MacOS versions use zsh as the default shell for both Terminal and iTerm2. Run echo $SHELL to confirm if this is the case for you.

Zsh looks for a .zshrc file upon shell startup, so to continue using zsh while sourcing the contents of your bash profile, you can run the following:

echo "source ~/.bash_profile" >> ~/.zshrc

Open a new terminal window for the changes to take effect.