News for hackers. Stuff that matters.
Re:Quickly go back to a directory instead of typing cd ../../.. by vigneshwaran on Sunday September 01, 2013 @08:10AM (#6310052)
Hi, 'jump' is a great bookmarking system for the bash shell. But you'd only want to bookmark some most used directories.

I made 'bd' out of frustration to use 'cd ../..' all the time from "any" random directory. I can't bookmark all possible places. They are like slightly different tools.

I think it'll be awesome to use both jump and bd in the same system!

Please give 'bd' a try. Once you get used to 'bd', you'll use it frequently without thinking. :)

Re:Quickly go back to a directory instead of typing cd ../../.. by hk__2 on Sunday September 01, 2013 @08:19AM (#6310081)
You can use z, then. You don’t have to bookmark directories to jump to them.
Re:Quickly go back to a directory instead of typing cd ../../.. by vigneshwaran on Sunday September 01, 2013 @08:37AM (#6310128)
Thanks. z is great! If only I had found this before. I actually googled a lot before writing this (last year April) but couldn't find something like z.

Anyways z always changes directory. Using bd within backticks will just print the path without changing the directory. We can use that with other commands like ls, zip etc. Example: "ls `bd <starting letters>`" would only print the contents without changing the directory.

Re:Quickly go back to a directory instead of typing cd ../../.. by arjunrc on Sunday September 01, 2013 @09:21AM (#6310237)
An obligatory addition - check out fasd (https://github.com/clvv/fasd), inspired by z.

In addition to "z foldername" to move around, you can do things like "v vimrc" or "v freetds.conf" to directly edit files, where ever you are.

It's available on homebrew.