Comment Comment by unfamiliar Zsh has a better builtin solution. hash -d x=/path/to/x Then you can cd to there with just ~x And use it in commands like ls ~x/whatever/ parent unfamiliar 2 years ago