dissabte, 27 d’abril del 2013

How to add an entry to the PATH in OSX 10

How to add a directory to your Mac OS X PATH variable:


  • Open the Teminal application.
  • Type the following:
echo 'export PATH=YOURPATHHERE:$PATH' >> ~/.bash_profile


where YOURPATHTHERE is the directory you want to add. 
For example, in order to install the Dart plugin for Sublime Text you need to add the bin directory of the Dart installation, so you'll type:


echo 'export PATH=/Users/joan/dart/dart-sdk/bin:$PATH' >> ~/.bash_profile


  • Close the Terminal and reopen. The new Terminal session should now use the new PATH.