A typical install of OS X won’t create a .bash_profile for you. When you want to run functions from your command line, this is a must-have.
- Start up Terminal
- Type
cd ~/to go to your home folder - Type
touch .bash_profileto create your new file. - Edit
.bash_profilewith your favorite editor (or you can just typeopen -e .bash_profileto open it in TextEdit. - Type
. .bash_profileto reload.bash_profileand update any functions you add. Notice the space between the two dots!