mac terminal path code example
Example 1: update path variable mac
export PATH=$PATH:/new/dir/location1
export PATH=$PATH:/new/dir1:/dir2:/dir/path/no3
Example 2: $path mac
sudo nano /etc/paths
Example 3: mac add a directory to path
cp bin/phantomjs.app/Contents/MacOS/phantomjs /usr/local/bin