Skip to content

Jetchisel/sdc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

sdc

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.


Requirements


Installation

  • 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.

Usage: A simple test run once you have sourced sdc

for f in /*/; do [[ -x $f ]] && cd "$f"; done

Now run

sdc

With autocd enabled

shopt -s autocd
for f in /*/; do [[ -x $f ]] && "$f"; done

Now run

sdc

This is almost the same functionality as mcd only sdc is parsing the directories table. Also please don't abuse the loops through the directories!

About

A bash function that allows user to navigate to the previous directories.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages