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.
gdir hit y (yes)dir anyway hit n (no)ls hit a (abort) and type your commandudir hit e (edit) and edit your command.A quick reference:
$ dir
zsh: correct 'dir' to 'gdir' [nyae]?
n: no – don’t correct; run dir, as you typedy: yes – do correct; run gdir, as Zsh suggesteda: abort – don’t run anything, and get a new prompt (to type a completely different command)e: edit – edit what you typed interactively – for instance, so you can change dir to udir
From An Introduction to the Z Shell:
If you press y when the shell asks you if you want to correct a word, it will be corrected. If you press n, it will be left alone. Pressing a aborts the command, and pressing e brings the line up for editing again, in case you agree the word is spelled wrong but you don’t like the correction.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With