zsh
has a powerful correction mechanism. If you type a command in the wrong way it suggests corrections.
What happend here is that dir
is an unknown command and zsh
suggests gdir
, while maybe ls
was what you wanted.
- If you want to execute
gdir
hity
(yes) - If you want to try to execute
dir
anyway hitn
(no) - If you want to execute completely different spelt command like
ls
hita
(abort) and type your command - If you want to execute a similar spelt commant like
udir
hite
(edit) and edit your command.