Last Updated: February 25, 2016
·
557
· Eyjafjallajokull

Navigate in zsh like a boss

To quickly navigate to directories in zsh shell, try those shortcuts:

~      # move to home dir
-      # move to previous dir
..     # move to parent dir
...    # move 2 dirs up
....   # move 3 dirs up
.....  # move 4 dirs up

To move to previous directory X steps before

-<number>

To see previous directory history try "d" command. Example:

~ $ cd public_html
~/public_html $ cd site
~/public_html/site $ d
0   ~/public_html/site
1   ~/public_html
2   ~
~/public_html/site $ -2
~ $