Setting the shell path on OS X Leopard

17th Apr, 2009 | osx unix

Create your .bash_profile document at the root of your home directory as follows:

export PATH=”/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/mtasc:/usr/local/tomcat/bin:$PATH”

and add any relevant paths that you may need. Then execute source .bash_profile in the command line. This ensures that changes to the environment made in .bash_profile are registered before you restart the shell.