Let me introduce a small project I’ve been working on with a friend of mine, Giuseppe Capizzi. The project is called jump and allows you to quickly change directories in the bash shell using bookmarks.
Thanks to Jump, you won’t have to type those long paths anymore.
You can find jump’s source code, detailed documentation and installation instructions here.
SUSE packages can be found here.
Tags: bash, Ruby















Entries (RSS)
How is it better than using ‘alias’ in bash?
For zsh users there are hashes:
hash -d =”/usr/src/zsh”
cd ~zsh
Or even just ~zsh if you configured zsh like that.
hash -d zsh=”/usr/src/zsh”
cd ~zsh
Neat, but Autojump is better. It saves you from having to manually add directories (or “bookmarks”) and it has full Bash and Zsh support:
http://github.com/joelthelion/autojump
I have create a ~/go folder where I place symlinks to the most important folders. As I am using zsh, I don’t have to type “cd “, but just “~/go/…”. The advantage over jump might be, that it is also possible to access these “bookmarks” in gui file selector or using them as arguments of shell commands like in “vim ~/go/…”.
There’s plenty of such projects out there already. NIH?
Great tool! I use aliases, etc. as well but the concept of collecting statistics on frequently used directories and using those as a basis for making guesses is a great one. My advice: if you’re skeptical about ‘jump’, install it and then forget about it for a week. Then try quickly jumping to a directory FOO you end up in from time to time using ‘J FOO’ …