How do I set path on Mac?
Answer
Add to the PATH on Mac OS X 10.8 Mountain Lion and up
Answer
Add to the PATH on Mac OS X 10.8 Mountain Lion and up
- Open up Terminal.
- Run the following command: sudo nano /etc/paths.
- Enter your password, when prompted.
- Go to the bottom of the file, and enter the path you wish to add.
- Hit control-x to quit.
- Enter “Y” to save the modified buffer.
- That’s it! To test it, in new terminal window, type: echo $PATH.