A project-specific zsh[0] function I find quite handy is: devhome () { cd $DEV_HOME/${~1}(/) } This assumes an environment variable DEV_HOME is assigned to be the location of the top-level directory for a given project. An example of its use is: devhome mod*/foo/src/**/some-dir 0 - https://www.zsh.org/
alias rr='cd $(git rev-parse --show-toplevel)'