0

Ignore Case When Using Tab Completion

On both Linux and OS X, I have a preference for tcsh shell. I have no real basis for that preference, merely a history with it. That history defined the preference, probably. Back in the day, I don't think bash supported tab completion in the console (or maybe I just didn't know that it did). I believe that's why I started using tcsh. That feature sounded like a real time saver. It was. And it is. When bash added it, I was already comfortable with my new friend so I stuck with it.

When I made the switch to OS X, one key difference from the Linux distros I'm familiar with is the (rampant) use of capitalization. Not really a big deal and, to be honest, I kind of like a lot of things about it. One thing I don't like, though, is that it makes my beloved tab completion a bit less helpful. If I don't press the shift key appropriately then the tab completion doesn't...well, complete. That's kind of annoying. In the console, I'm used to just typing with no regard to case. I mean, nearly everything in Linux is lowercase. As a result, case just isn't important.

Today that all changed. As I was browsing the unread items in my Macworld feed, I saw this title: Ignore case with Teminal tab completion. Could it be?

Yep, it was. Not only does it work on the Mac, but it works brilliantly on Linux and in Cygwin on Windows (another place I expect it to be a helpful addition).

Before you ask, yes. The article includes the syntax for an equivalent bash setting. If you're a tcsh user like me, though, just add the following line to your .tcshrc file to ignore case when using tab completion:

set complete = enhance

Once again I'm forced to ask...how did I not know that before?

 

tags:
OS : OS X
 
I love tab completion, there...i said it too.

 
posted 929 days ago
Add Comment Reply to: this comment OR this thread
 

Search

Rob  Wilkerson