oh-my-zsh is great, but certain commands it doesn’t like, for example the Knife CLI tool for Chef. Luckily it is possible to disable auto-correct as required.

sudo vim ~/.zshrc

To disable just auto-correction for Knife, add the following line somewhere in the configuration

nocorrect knife

To disable all auto-correct (which I prefer personally) add the following line somewhere in the configuration

DISABLE_CORRECTION="true"
  • By: Andrew Kirkpatrick
  • In: Linux
  • Under: