I love the autocorrection feature of ZSH, but sometimes it gets in the way:

  • If I have a cli directory, it will be suggested when I try to run npm run ci.
  • When running the Docker command docker run -v /some/dir:/var/www it will try to autocorrect to /some/dir/var/www
  • ... and many more

Now I don't want to turn off autocorrection or prefix the command with nocorrect. What I would like is more of a "learning" autocorrection that wraps around the normal suggestions, counts how many times I said "no" to a suggestion and does not suggest it any more if I've said "no" for 3 times. I something like this possible?

Your Answer

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

Browse other questions tagged or ask your own question.