There is a hidden file in your Mac’s user directory named .bash_profile. This file is loaded before Terminal loads your shell environment and contains all the startup configuration and preferences for your command line interface. Within it you can change your terminal prompt, change the colors of text, add aliases to functions you use all the time, and so much more.
If you run the open ~/.bash_profile
command and do not have a current .bash_profile, follow these steps to create one:
- Open Terminal