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 :)

Powered by WordPress | Theme by Roy Tanck