Poweredbylinux I recently read a post (on Korben’s blog) regarding a command called bd to go back to a directory from you current full path. It permits to do more than that !

In fact this is a simple shell script, but it really helps when you’re in a long subfolder list. For example if you reside in ‘/home/user/project/src/org/main/site/utils/file/reader/whatever’ and want to change to ‘/home/user/project/test’, then try ‘bd p`/test.

If you want to see all the possibilities, you can look at the main site project.

As I use zsh and don’t want to add a binary like the official documentation says, I added it as a zsh function. The advantage is I do not need to deploy more than my zsh configuration on a new machine. You can see my configuration on my git.