cdd is a set of scripts written in python and bash that make it easier to navigate file system directories. It allows the user to jump directly to frequently used directories, typing just a few characters contained in the directory basename.
Step 1: install
pip install --user cdd. I didn't
test whether it works installed as root user. Alternatively, you
can download the files directly from GitHub.
Step 2: set up paths. Once the scripts are installed, make
PATH and your
pip --user installs scripts in
~/.local/lib/python2.7. If this is your case,
add the first directory to your
PATH and the second to your
Step 3: set up the
cd function. This is achieved by sourcing
cdd-bash-function.sh file. You can test
making it permanent, by sourcing the file containing the
function issuing the command
source ~/.local/bin/cdd-bash-function.sh. To make it permanent, source
the file from within your
cd as you are used to. Whenever you use
navigate in the usual way within the file system,
store the directories seen. Once the directory is in the cdd
database, you can navigate directly to that directory, by typing
<pattern> is any part of the name of the subdirectory.