I recently downloaded iTerm 3 and I have this issue where it automatically cd's in a certain directory when I type the name.
So for example, I want to run grunt, but there's a grunt directory. So when I type grunt, it doesnt run the CLI command, but it automatically cd's into the grunt directory. How can I turn that off?
For example (output of my console):
~ → cd Desktop/dir1
dir1 → ls
dir2
dir1 → dir2
dir2 →
when I type dir2
, it should not automatically assume I want to cd
right?
I'm afraid this behavior has nothing to do with iTerm, but caused by zsh.
You can turn it off by execute:
unsetopt AUTO_cd
There is a related question here.