Bashmarks is a shell script that allows you to save and jump to commonly used directories. Now supports tab completion.
git clone [email protected]:lecfab/bashmarks.git
cd bashmarks
make install
- source ~/.local/bin/bashmarks.sh from within your ~.bash_profile or ~/.bashrc file
b - Lists all available bookmarks
b <bookmark_name> - Goes (cd) to the directory associated with "bookmark_name"
bs <bookmark_name> - Saves the current directory as "bookmark_name"
bp <bookmark_name> - Prints the directory associated with "bookmark_name"
bd <bookmark_name> - Deletes the bookmark
$ cd /var/www/
$ bs webfolder
$ cd /usr/local/lib/
$ bs locallib
$ b
$ b web<tab>
$ b webfolder
All of your directory bookmarks are saved in a file called ".sdirs" in your HOME directory.
- Huy Nguyen
- Karthick Gururaj
- to bookmark files, check friday-james's fork