Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Shell Makefile
Branch: master

Merge pull request #48 from w9/master

added the `/bin/` prefix for `rm` and `mv`
latest commit 342169ad48
@huyng authored

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. cd bashmarks
  3. make install
  4. 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"
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.

Something went wrong with that request. Please try again.