When I was working on a Terminal, I used to type lots of cd
and cd ..
to go back and forth the directory. Too often, when I went to deep into the directory hierarchy, I got to type multiple times cd ..
just to move up to parents, or a long command like cd ../../../../../
.
I got frustrated every freaking time doing this, so I thought of an more easy way to type once and it got me to the correct directory up in the hierarchy, I call the alias two-dots
.
|
|
How it works:
|
|
If you want to more enhanced version of back()
such that typing .. 6
or .. that
will produce the same result, you can check out my Gist: