You don't need to type 'cd' in zsh!

Today I learned that if you're using ZSH (default in MacOS), you don't need to type the cd when changing directories! Instead you can just use .., important-dir or something like that!

You can disable and enable this option with unsetopt autocd and setopt autocd

update: If you have Oh My Zsh you can also go back multiple times with ..., .... etc. instead of ../.., ../../..! 🤑


- 3 toasts