how to add the following line of code to your .bash_profile file mac code example Example: Add the following lines to your $HOME/.bash_profile touch ~/.bash_profile; open ~/.bash_profile