Bashmarks is a shell script that allows you to save and jump to commonly used directories.
I forked this project in order to make it better for me. As such, I have no plans at this time to make them compatible with anything other than Bash on OS X. If I change my mind, I'll update this document.
- git clone git://github.com/Smolations/bashmarks.git
- source /path/to/bashmarks.sh from within your ~.bash_profile or ~/.bashrc file
s <bookmark_name> - Saves the current directory as "bookmark_name"
g <bookmark_name> - Goes (cd) to the directory associated with "bookmark_name"
d <bookmark_name> - Deletes the bookmark
l - Lists all available bookmarks
$ cd /var/www/
$ s webfolder
baskmark saved!
$ cd /usr/local/lib/
$ s locallib
baskmark saved!
$ l
webfolder /var/www
locallib /usr/local/lib
$ g webfolder
All of your bashmarks are saved in a file called ".sdirs" in your HOME directory. Please look, but don't touch. =]