Bashmarks is a shell script that allows you to save and jump to commonly used directories. Now supports tab completion.
This branch of bashmarks is a fork of the origial huyng/bashmarks and is compatably with gonsie/fishmarks.
There is a slightly different format for the .sdirs file, but this can be used with both bash and fish.
- git clone git://github.com/huyng/bashmarks.git
- make install
- source ~/.local/bin/bashmarks.sh from within your ~.bash_profile or ~/.bashrc file
s <bookmark_name> - Saves the current directory as "bookmark_name"
c <bookmark_name> - Goes (cd) to the directory associated with "bookmark_name"
p <bookmark_name> - Prints the directory associated with "bookmark_name"
d <bookmark_name> - Deletes the bookmark
l - Lists all available bookmarks
$ cd /var/www/
$ s webfolder
$ cd /usr/local/lib/
$ s locallib
$ l
$ c web<tab>
$ c webfolder
All of your directory bookmarks are saved in a file called ".sdirs" in your HOME directory.