ohmyzsh / ohmyzsh

🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up with the latest updates from the community.
https://ohmyz.sh
MIT License
173.6k stars 25.89k forks source link

Puzzling correctall behavior (i.e. [nyae]) #927

Closed orpheuslummis closed 12 years ago

orpheuslummis commented 12 years ago

I started learning zsh recently and I've been using oh-my-zsh all along. I'm on the brink of shouting “OH MY ZSHELL!” — but not quite. I'm puzzling myself on the command correction utility, or rather, its interface.

Say I enter tmu in the prompt, I get back zsh: correct 'tmu' to 'tmux' [nyae]? Which is alright if I press n or y, knowing that, by convention, it should mean no or yes. But what's with the following a and e? a seemingly does the same thing as n, and e the same thing as n and a, but with leaving the 'tmu' in the prompt.

Could someone enlighten me?

timkurvers commented 12 years ago

Was horribly confused too when I first ran into this, had to look it up.

Source: http://zsh.sourceforge.net/Intro/intro_16.html

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. 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.

orpheuslummis commented 12 years ago

Ooh. I wasn't aware of the manual. Thanks a lot and have a great day.