ddhrna
Last Updated: February 25, 2016
·
747
· athal7
56b0b10e79eea3c98fb88c91ef0c6a5e

Stop making aliases to change directories

Summary

I frequently see people making aliases like these to cd into different applications:

alias mp="cd ~/Documents/Work/my_project"

At least at LivingSocial, it seems that there is a new application dependency on a monthly basis, which makes the whole alias for cd-ing process a pain.

Instead I use autojump. In the words of the authors:

"autojump is a faster way to navigate your filesystem. It works by maintaining a database of the directories you use the most from the command line. Directories must be visited first before they can be jumped to."

Favorite Features

  • auto-completion on partial string match getting to the "my_project" directory is as easy as
j my<tab>

depending on the frequency of your visit to that directory compared to other directories that start with "my".

  • show directory entries and their respective weights (clear the weights if you'd like)
j --stat

Start jumping here

Say Thanks
Respond

2 Responses
Add your response

9913
076ddab874e5e370a451f0da52afb85c

start making aliases to change directories!

alias ..='cd ..'

over 1 year ago ·
12540
B305232453d4b466f25eec80cb6b83c2

Good tip, thanks for sharing!

over 1 year ago ·
Filed Under