$ knife cookbook download recipe
zsh: correct 'cookbook' to 'cookbooks' [nyae]?

How can I get zsh to stop trying to correct cookbook to cookbooks??

cookbooks is a directory where I run the command so I understand why it's doing it, but cookbook is a valid part of the command line.

migrated from stackoverflow.com May 21 '11 at 22:10

This question came from our site for professional and enthusiast programmers.


If you don't want to disable corrections completely, you should define an alias:

alias knife='nocorrect knife'

You can add setopt nocorrectall; setopt correct to your ~/.zshrc file to disable this behavior. It will still function for commands, but not for arguments.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy