Terminal: run source ~/.bash_profile every time start new terminal
If you are using oh-my-zsh,
the default one that will be loaded automatically is ~/.zshrc
. All you need to do is adding the following at the end of ~/.zshrc
:
if [ -f ~/.bash_profile ]; then
. ~/.bash_profile
fi
.bashrc
will be loaded per default, so if you have all your stuff in .bash_profile
ensure it will be loaded, so you have to add to your .bashrc
:
if [ -f ~/.bash_profile ]; then
. ~/.bash_profile
fi