DirB, Directory Bookmarks for Bash


Vinh Nguyen


December 22, 2010

I found out about DirB through this Linux Journal article. Pretty useful and user-friendly. Don't know if I'll remember to use it since I use Dired in Emacs for bookmarking directories. I just need to remember these commands:

s — save a directory bookmark.
g — go to a bookmark or named directory.
p — push bookmark/directory onto dir stack.
r — remove a saved bookmark.
d — display a bookmarked directory path.
sl — print the list of directory bookmarks.

To install, save this to ~/.bashDirB and place source ~/.bashDirB in your ~/.bashrc file. I commented out the PS1 definition in the .bashDirV file since I don't like it.