how to permnanetly add a variable to path in macOs code example
Example 1: $path mac
sudo nano /etc/paths
Example 2: mac add a directory to path
cp bin/phantomjs.app/Contents/MacOS/phantomjs /usr/local/bin
sudo nano /etc/paths
cp bin/phantomjs.app/Contents/MacOS/phantomjs /usr/local/bin