Autojump, or a "cd" that remembers.

January 22nd, 2009 You are going to love this thing, believe me. You work on the CLI and jump always around from directory to directory? Well, you tried "Ctrl+r" I suppose. Frankly, it sucks. Sure you can cycle through the items but its just to stupid. We all want to save keystrokes so try this instead:

Sh/Bash Shell Users: Autojump j.sh implementation.
Zsh Shell Users: Autojump j.sh zsh port.

Original idea came from here: AutoJump.

So how does it work? Well download the script according to your shell and source it. Meaning either put it directly into your .zshrc or .bashrc or source the file. Then just work normally for some time, cd around like you normally work. Now you can do a j regex instead of cycling through the history with ctrl+r. The script will guess what you want ! Neat..

UPDATE: See the comments for a interesting suggestion from Martin, about WCD (http://www.xs4all.nl/~waterlan/).