Adding new directories to path variable is really simple under Mac OS X. Just follow the next few steps:
- Open the Terminal (press ⌘ + SPACE and type terminal).
- Make sure that you are in your home directory
- Type:
echo 'export PATH=YOURDIRECTORY:$PATH' >> ~/.profil
- Don't forget to replace "YOURDIRECTORY" with your directory string. In example: /opt/local/bin
- Re-open the terminal.
The directory you added should be available in the path variable now.