terminal add to path code example
Example 1: cmd add to path
# update path only for the current session
set PATH=%PATH%;C:\your\path\here\
# update the path permanently
setx /M PATH "%PATH%;C:\your\path\here\"
Example 2: adding this directory to PATH mac
sudo nano /etc/paths
https://www.architectryan.com/2012/10/02/add-to-the-path-on-mac-os-x-mountain-lion/
Example 3: mac add a directory to path
cp bin/phantomjs.app/Contents/MacOS/phantomjs /usr/local/bin