Wednesday, January 08, 2014

AutoCorrection in zsh

By default, zsh comes with autocorrection.

If you found that it is very annoying, you can turn it off separately. To switch it off completely:
unsetopt correct  # newer version
unsetopt correct-all # older version

To switch it off for certain command, such as 'vim', do this in your .zshrc
alias vim='nocorrect vim' 

To switch it off for another copy of zsh:
NOCOR=1 zsh