add new path to command line mac code example Example: mac add a directory to path cp bin/phantomjs.app/Contents/MacOS/phantomjs /usr/local/bin