I'm using zsh & I've aliased ..
to cd ..
. I want zsh to cd
to a path if and only if the typed out path is a repetition of ..
or ../
.
The following should auto-cd
:
..
../
../../../../
../../..
These should not auto-cd
:
../../mydir
mydir
/dir
How can I configure zsh (and maybe bash) to auto-cd
like so?