Directory bookmarks for the shell
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits ahead, 25 commits behind huyng:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Bashmarks is a shell script that allows you to save and jump to commonly used directories. Now supports tab completion.


  1. git clone git://
  2. make install
  3. source ~/.local/bin/ 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"
n <bookmark_name> - Goes (cd) to the directory associated with "bookmark_name" in a new tab (in shell clients that support it)
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
g web<tab>
g webfolder
n webfolder

Where Bashmarks are stored

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