Last Updated: February 25, 2016
·
719
· pcasaretto

How to get zsh to stop correcting what it shouldn't

~$ sudo vim somefile
zsh: correct 'vim' to '.vim' [nyae]? 

it seems correctall is supposed to correct commands and arguments, while correct corrects only commands, therefore eliminating this annoying behaviour.

This is what I have in my config files

unsetopt correct_all
setopt correct