Remove case sensitivity from auto-completion

Feb 07, '02 09:44:00PM

Contributed by: jmb

For everyone out there that is bothered by the case-sensitivity of auto-completion in the Terminal, you have an option. Just open a terminal window and type:

  set complete = enhance
Alternatively, you can put this command in your .tcshrc file (if you've created one in your home directory). This setting seems to be saved somewhere, although I'm not sure where. Therefore, once you entered it (or put it in you .tcshrc file), it should stick even if you delete that line from .tcshrc at a later time.

If you're not sure what I'm referring to, try the following (before setting autocomplete to enhanced mode). Go into the terminal and type:
  cd /app [and then hit tab]
The autocomplete won't work, as the Applications folder is capitalized (or at least it is on the default install). Now try the following:
  cd /App [and then hit tab]
This should pop out to:
  cd /Applications
After you've tweaked the 'complete' setting, it will ignore the case of your entry and autocomplete based on the character(s) alone, regardless of case.

From playing around with it, it seems that typing:
  set complete
with no modifiers will bring back the case-sensitivity, although I haven't tested this thoroughly.


Panther broken!

Comments (13)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20020207214456750