Show HN: My friend misspelled “which” command, so I created this script for him(gist.github.com)
gist.github.com
Show HN: My friend misspelled “which” command, so I created this script for him
https://gist.github.com/shanielh/ca5ff87d7d7b43394224a34f0ee0d20f
2 comments
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).
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
* https://packages.debian.org/command-not-found
Haha, nice! Which will be the next word that you will convert in something funny?
How about: deer/dear or die/dye
:)
How about: deer/dear or die/dye
:)