Up until recently, Bash was the default shell used in macOS. If you’re still using an account under Bash, here’s a quick how-to manipulate your .bash_profile file.
Create .bash_profile
To create the bash_profile, proceed with the following steps:
- Open the terminal.
- Move the home directory using the following command:
cd ~/ - Use the touch command to create the bash_profile as follows:
touch .bash_profile