does linux have a "did you mean......" component for the command line like Google?
Ulf Rompe
Ulf.Rompe at icem.com
Fri Nov 16 09:31:15 UTC 2007
Am Freitag, den 16.11.2007, 01:34 -0500 schrieb John Toliver:
> Can I install a package that lets me get to the
> command I am looking for even if I happen to mis a letter?
Like in "mis"? ;-)
If you don't need to use bash, you may want to try tcsh. It has a built
in spell checker that you can activate in .cshrc. I once thought it was
a good idea and used it several years ago, but soon it annoyed me to no
end. YMMV.
With bash, you may be able to get that feature by hooking some program
into /etc/bash_command_not_found, but I'm not sure if there is a tiny
tool that you can use out of the box. Hey, wait - there is tcsh! If you
configure your .cshrc or .tcshrc to do autocorrection and then use
something like
tcsh -c "$1" || return 127
in /etc/bash_command_not_found - yes, that might work, no matter how
sick it looks. :-)
[x] ulf
--
Besuche machen immer Freude. Wenn nicht beim Kommen, dann beim Gehen.
(Spanisches Sprichwort)
More information about the ubuntu-users
mailing list