onsa
1/18/2017 - 10:08 PM

Add a directory to the PATH variable

Add a directory to the PATH variable

#  from CLI
export PATH="/path/to/dir:$PATH"

#  from bash
if [ -d "/path/to/dir" ] ; then
  PATH="/path/to/dir"
fi