I like zsh autocorrect, but it keeps asking me about things that don't need correcting.

dzil build
zsh: correct 'build' to '.build' [nyae]? % 

.build is a directory created by the build (or any other commands that run that action so dzil .build is always wrong, and dzil build is always right. Is there any way I can communicate this to the autocorrect system?


1 Answer 1


Zsh's autocorrection only has limited configurability, but this should be enough for your use case. Set the CORRECT_IGNORE variable to match the strings you want to ignore in autocorrection.


(I'm assuming you aren't using correct_all. With correct_all, I think being endlessly prompted about things that don't need correcting is unavoidable.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .