Case Insensitive Tab Completion in Mac OSX Terminal

nadeem.shabir | | Wednesday, April 2nd, 2008

One of the things that keeps annoying me slighty is that by default tab completion in the terminal window is case sensitive.

  1.  
  2. #for example if I want to change to a directory call Foo then doing the following does not work
  3. cd f[tab]
  4.  
  5. #if I want it to work I have to do
  6. cd F[tab]
  7.  

It’s amazing how often I make that mistake … fortunately there is a way around this. Add the following line to your ~/.profile file:

  1.  
  2. bind "set completion-ignore-case on"
  3.  

Once you have done this, restart Terminal and try again. Now tab completion is case insensitive very nice :)

2 Comments »

  1. thanks, it worked easily.

    Comment by yigit darcin — October 22, 2008 @ 12:50 pm

  2. Many thanks.

    Comment by Josh Paradroid — November 15, 2008 @ 6:09 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress | Theme by Roy Tanck