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