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?
Asked by chiborg
(231 rep)
Mar 18, 2017, 10:49 AM
Last activity: Oct 29, 2020, 08:46 AM
Last activity: Oct 29, 2020, 08:46 AM