Bash add current path to $PATH environment variable

To add the current path the the $PATH environment variable, do the following:

$ PATH=$(pwd):$PATH

This will take the current/working directory and add it to $PATH.

Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment