←back to thread

768 points speckx | 2 comments | | HN request time: 0s | 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 #
vunderba ◴[] No.45674420[source]
Does zsh support this out-of-the-box? Because I definitely never had to setup any of these kinds of aliases but have been using this shorthand dot notation for years.
replies(2): >>45674855 #>>45679296 #
1. machomaster ◴[] No.45674855[source]
Yes it does.
replies(1): >>45675304 #
2. Noumenon72 ◴[] No.45675304[source]
Not on my Mac.

    zsh: permission denied: ..
    zsh: command not found: ...