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
~ $
Written by Eyjafjallajokull
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#