A bash function that allow user to navigate back to the previous directories.
Navigate back to the previous navigated directories by providing the corresponding number in the menu. With or without autocd enabled. The sqlite3 directories table created by sdb is being parsed.
By default only directories are shown for the current shell session. The -a flag will remove that restriction and show all directories that are current/past and all other directories in other shell sessions.
Regardless how many times a directory appears in the table. Only one instance of a directory is shown in the menu. Avoiding duplicates Without an option and if the "tput" utility is installed, by default the fonts are bold and colored. If the "git" utility is installed the status of the git repository is printed once inside the directory repository.
- git clone https://github.com/Jetchisel/sdc
- cd sdc/ && source ./sdc
- or just download the zip archive and unpack it.
- Do the same procedure with sdb for a permanent change.
for f in /*/; do [[ -x $f ]] && cd "$f"; doneNow run
sdcWith autocd enabled
shopt -s autocdfor f in /*/; do [[ -x $f ]] && "$f"; doneNow run
sdcThis is almost the same functionality as mcd only sdc is parsing the directories table. Also please don't abuse the loops through the directories!