Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
$ 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.

share|improve this question

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

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

2 Answers 2

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.

share|improve this answer

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

alias knife='nocorrect knife'
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.