Rooter.sh is a project mainly written in ..., it's free.
cd to the project root
cd to the project root (identified by the presence of a SCM directory, like .git, or .bzr)
Put something like this in your .zshrc/.bashrc:
. /path/to/rooter.zsh (for the zsh version)
. /path/to/rooter.sh (for the bash version)
This installs the cdr
command for use.
$ pwd
/home/yeban/drizzle/drizzle/libdrizzle-2.0/libdrizzle
$ cdr
$ pwd
/home/yeban/src/drizzle/drizzle