Skip to content
secelis edited this page Sep 13, 2010 · 17 revisions

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

It tab completes out of its file ($HOME/.j), and tries a case sensitive match first, then tries to match without case sensitivity.

FAQ

  1. How come j .. doesn’t work like cd ..?

j is not intended as a substitute for the cd command. You should still cd everywhere as you normally would. When you want to jump somewhere you have been, then type j substring to jump a directory in your often used list.

  1. Why do the options use a double-dash -- instead of a single-dash -?
Clone this wiki locally