Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Stop typo correction suggestions UNIX
Let's say you're typing a command, and you do a typo. The shell will offer you a correction ... for example, you type:
pinge
and it'll ask you:
OK? ping?
If you don't like that, these commands will stop it from suggesting typo corrections:
unset autocorrect
unset correct
You can put those in whatever appropriate .tcshrc file or such-like place you keep such things. BTW, use at your own caution ... I'm a total Unix newbie who swiped this off a Google search result, and I take NO responsibility for absolutely anything in the whole wide world. ;-)

[Editor's note: If you'd like to re-enable the typo corrections, simply use set autocorrect and set correct. You'll need to close and re-open a Terminal window for the changes to take effect. And I think these commands are generally safe to use :-)]
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[3,139 views]  

Stop typo correction suggestions | 2 comments | Create New Account
Click here to return to the 'Stop typo correction suggestions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Request
Authored by: SeanAhern on Nov 12, '01 08:11:06PM

I have a request.

When you post a suggestion about a special feature of the shell (which is what this posting is about), could you please make sure you mention what shell this applies to? Not everyone uses the same shell, so people might start getting confused, especially those who are new to the whole UNIX thing. :-)

I believe this particular suggestion is a feature of tcsh.

I would recommend that people check out zsh and ksh, two of the more powerful shells out there. zsh is my personal favorite.



[ Reply to This | # ]
Assumed defaults...
Authored by: robg on Nov 12, '01 10:41:14PM

Since tcsh is the default OS X shell, all tips should be assumed tcsh unless otherwise specified. I'll add this to the FAQ posting.

-rob.



[ Reply to This | # ]