install bash_profile mac code example
Example 1: refresh bash_profile mac
source ~/.bash_profile
Example 2: configure nano bash profile
To save the file, press Control-O.
At the filename prompt, press Enter.
To exit, press Control-X.
Example 3: 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