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.

Comments

Leave a Reply