Apple - Where is my .bash_profile located? (Mac OS 10.10.5)
You can edit bash profile with vi ~/.bash_profile
make sure the PATH was not added in ~/.bashrc
or to /etc/profile
To remove the PATH you can either remove it from the file where it was added, or simply re export the ones you need export PATH=/here/is/one:/here/is/another
Navigate to your user folder in Finder:
/Users/username/
Make hidden files visible (the shortcut is ShiftCmd.)
Right click
.bash_profile
and Open With... your text editor of choice.ShiftCmd. one more time in Finder to make hidden files invisible again. (Not required, just a good idea.)