3 ms·
Zsh has this out of the box. You just type the name of a directory and it will `pushd` to it. At least I think it's built-in. It could be oh-my-zsh I suppose.
by deevus 3y ago
Zsh has this out of the box. You just type the name of a directory and it will `pushd` to it. At least I think it's built-in. It could be oh-my-zsh I suppose.
- vladvasiliu 3y agoIt's not out of the box. It works on my omz shell, although I didn't do anything to specifically enable this since it never bothered me to type cd and I kinda hate "magic". On an out-of-the-ubuntu-box zsh, it doesn't work: % cd / % bin zsh: command not found: bin
- pcdavid 3y agoThis behavior is controled by the AUTO_CD option: https://zsh.sourceforge.io/Doc/Release/Options.html https://zsh.sourceforge.io/Doc/Release/Options.html. To enable it yourself: setopt AUTO_CD
- bandie91 3y agoin bash it's shopt autocd