open bash_profile mac code example
Example 1: how to open bash_profile
> touch ~/.bash_profile; open ~/.bash_profile
Example 2: source bash_profile on startup mac
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