Mac OS X - Adding directories to path variable



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

0 Kommentare:

Post a Comment