←back to thread

768 points speckx | 2 comments | | HN request time: 0.429s | source
Show context
revicon ◴[] No.45674313[source]
I have a bunch of little scripts and aliases I've written over the years, but none are used more than these...

alias ..='cd ..'

alias ...='cd ../..'

alias ....='cd ../../..'

alias .....='cd ../../../..'

alias ......='cd ../../../../..'

alias .......='cd ../../../../../..'

replies(6): >>45674378 #>>45674420 #>>45674599 #>>45675353 #>>45676254 #>>45678784 #
1. tacone ◴[] No.45674599[source]
I have setup a shortcut: alt+. to run cd.., it's pretty cool.

I also aliased - to run cd -

replies(1): >>45675580 #
2. fragmede ◴[] No.45675580[source]
but alt-. in bash is used for pasting the last argument to the previous command into the current one.