j, a cd command that learns
February 18, 2009 4:26 PM Subscribe
j, a cd command that learns
This one's for the unix nerds; everyone else can move along. Spend a lot of time cd-ing around a complex directory tree? j keeps track of where you’ve been, and how much time you spend there. Source it into your .bashrc, and then you can say j foo to jump to the most used directory that has the substring (actually regex) foo in it, or j foo bar for the directory that has both foo and bar ...
There's been some discussion on reddit about this, but I thought some Mefi people might want to know about it.
This tool is by Mefi's 31d1; I've been helping debug it a bunch.
This one's for the unix nerds; everyone else can move along. Spend a lot of time cd-ing around a complex directory tree? j keeps track of where you’ve been, and how much time you spend there. Source it into your .bashrc, and then you can say j foo to jump to the most used directory that has the substring (actually regex) foo in it, or j foo bar for the directory that has both foo and bar ...
There's been some discussion on reddit about this, but I thought some Mefi people might want to know about it.
This tool is by Mefi's 31d1; I've been helping debug it a bunch.
Wow, this is way better than pushd and popd. The nice thing is that it's easy to move the script around -- I work on 4 or 5 different linux servers, so this is my primary concern with new shell features.
posted by spiderskull at 1:32 PM on March 2, 2009
posted by spiderskull at 1:32 PM on March 2, 2009
« Older Wine Direct Ship Licenses... While You Wait!... | Monkey Talks... Newer »
posted by cortex at 10:28 AM on February 19, 2009 [4 favorites]