Thursday, March 5, 2009 easy directory navigation

A former colleague told me about which is a great little bash script that follows you around the directories you cd into and tracks how many commands were run in each directory. Then when you want to pull up the most used directory matching a certain pattern you just

j somedir

and then you end up in


and it will put you into that directory.

Much better than push, dirs combo.

Even better, you can add an additional param to qualify the first

j somedir qualifier

and then instead of


you end up in


No comments: