8
1
I'd like for something to hook into the 'command not found' error on bash and offer a useful fix.
For example:
grep-C3 error
bash: grep-C3: command not found
It would be nice if it said:
Did you mean: grep -C3 error (Y/n)
I've seen people include common typos in the .bash_profile script like 'alias gerp=grep', but I figure someone has probably written a general extension to bash to fix this sort of thing.
Has anyone heard of such an extension?
1http://www.catb.org/~esr/jargon/html/D/DWIM.html – Richard Hoskins – 2009-09-23T04:09:40.077