CDPATH

So, you set an environmental variable called PATH in your .bashrc.

This gives you goodies like tab completion of the name and not needing to type in the full path for a program.

If you use a CDPATH environmental variable, you get the same magic when using cd to change directories.

Make sure to include to include “.” in the path, so that cd looks in the current directory.

Advertisements