Re:Antonmedv/walk: Terminal file manager
by deevus on Tuesday August 22, 2023 @08:18AM
(#37221611)
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.
[ Parent
| on HN ]
Re:Antonmedv/walk: Terminal file manager
by vladvasiliu on Tuesday August 22, 2023 @08:43AM
(#37221881)
It'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: binThis behavior is controled by the AUTO_CD option: https://zsh.sourceforge.io/Doc/Release/Options.html.
To enable it yourself:
setopt AUTO_CD