How to make 'zsh' to stop autocorrect for some words?

4

I'm using zsh + oh-my-zsh.

How can I make zsh to stop auto-correct for some words?

e.g. When I do make install or sudo apt-get install, it always tries to auto correct install to INSTALL. Can I make it NOT do it?

Thank you.

michael

Posted 2013-01-16T17:48:27.870

Reputation: 4 127

Answers

4

Have you tried using aliases like this?

alias install='nocorrect install'

Or

alias apt-get='nocorrect apt-get'

Alternatively, this more drastic option

unsetopt correct_all

Martín Canaval

Posted 2013-01-16T17:48:27.870

Reputation: 901