DirB, Directory Bookmarks for Bash

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:

<pre class="src src-sh">s &#8212; 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.

About Vinh Nguyen


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>