change PATH in OS X
Posted by notKlaatu , 07 August 2008 · 116 views
to change PATH in OS X:
$ cd ~ && vim .profileIn vim (or you can use nano if you want), add to the .profile document:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH...or whatever directories you are trying to add to your path. (the /opt/local/bin stuff is helpful becuase if you're running MacPorts like I am, you can just type in the name of the ported app you are trying to launch and it knows where to look.)That's it. You'll have to close your current terminal window in order for this to kick in.