Hacker News new | ask | show | jobs
by VertexRed 3505 days ago
This is fun gag to play. But something that would really awesome would be if you could call your script if an unknown command is run and have the script look for a command that's most similar to the misspelled one and ask if that's what the use meant (or even auto run the corrected command).
2 comments

Sounds exactly like this: https://github.com/nvbn/thefuck
See the command-not-found package for Debian/Ubuntu:

* https://packages.debian.org/command-not-found