Skip to end of metadata
Go to start of metadata

Simply add a new path to /etc/paths

sudo nano /etc/paths

After you've added the path and saved the change, you will need to open a new terminal to validate that the changes have taken effect.

If you want to add or edit other environment variables, you can modify the bash profile...

sudo nano ~/.bash_profile

For example, you could add lines similar to the following to setup HOME variables for important applications...

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home
export ANT_HOME=/Users/cburleson/apache-ant-1.10.1
  • No labels