Custom commands for the bash shell which enable the user to quickly switch between favorited directories.
-
Download the .cdf_commands.sh file
-
Put the file somewhere nice (home directory)
-
Add the following line to your .bashrc
source ~/.cdf_commands.sh
-
Restart your shell
cdf -l
Prints out the favorited directories and their nicknames
cdf -a
Adds a favorited directory
cdf -d
Deletes a favorited directory
cdf <directory nickname>
Moves to the favorited directory