Bashmarks is a commandline utility that allows you to save and jump to commonly used directories.

github repository

installation

  1. git clone git://github.com/huyng/bashmarks.git
  2. cd bashmarks && make install
  3. add source ~/.local/bin/bashmarks.sh from within your ~.bash_profile or ~/.bashrc file

shell commands

s <bookmark_name> - Saves the current directory as "bookmark_name"
g <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

example usage

$ cd /var/www/
$ s webfolder
$ cd /usr/local/lib/
$ s locallib
$ l
$ g web<tab>
$ g webfolder

where bashmarks are stored

All of your directory bookmarks are saved in a file called “.sdirs” in your HOME directory.