Sunday, August 28, 2011

Bookmarking folders in *nix environments (well its not 'alias')

Most of the time in our daily job we work on folders which are most frequently used. As a matter of fact, the first thing I do as soon as I open a terminal is to 'cd' to my project directory and few other directories which are project working directories and as you might have guessed it by now, I have always been using the wonderful tool called 'alias'. Today I came across a better tool than 'alias' to do the same job in much elegant way. 

Yes check out cdargs (http://www.skamphausen.de/cgi-bin/ska/CDargs) which is a folder bookmarking tool. I loved it as soon as I tried once. Its got two basic commands
  • mark <name> - Used to book mark the current folder  with a given name
  • cdb <name> - Used to navigate to the already bookmarked folders
You must be thinking what is so great about it, how is it any different from alias command. On well cdb does much more than just navigating to the bookmarked folder. If you run cdb command with out giving a argument, it opens a editor with a list of all bookmarked folders and you can just use your arrow keys to navigate and the feature I liked the most is you can even navigate to the sub folder of the bookmarked one and keep going as many levels as you want. 

Cool isn't it!!  Am loving it.

No comments: