Viktor Petersson logo

Blog

Autojump: blazing fast filesystem navigation

03 OCT • 2014 1 minute

Autojump: blazing fast filesystem navigation

autojump - A cd command that learns - easily navigate directories from the command line

I just ran across a very convenient little tool called autojump that I wanted to share.

For a number of years, i’ve used aliases in Bash for quickly navigating the file system. autojump makes this unnecessary.

OS X crash course

This requires that you have brew installed and use Bash as your shell

Installation

brew install autojump
echo '[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh' >> ~/.bash_profile 
source ~/.bash_profile

Usage

cd /path/to/my-project
j my-project

Please note that you need to cd into the directory before it appears in the index.

Enjoyed this post? Check out my podcast!

If you found this interesting, you might enjoy "Nerding Out with Viktor" - my podcast where I dive deep into tech, entrepreneurship, and security with industry experts.

Listen on:
Found an error or typo? File PR against this file.