Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Case insensitive tab completion in Bash

Is there any way to make the tab-completion in bash case-insensitive? For instance, if I have a file called Hello.txt and try to tab-complete it by typing he followed by Tab it will not work. I would have to tab-complete it by typing He (note the capital H) and Tab. Is there any way to set up bash so I don't have to preserve the case when I type it and try to tab-complete it?

share|improve this question

marked as duplicate by Sathya Apr 16 '11 at 3:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I'm glad to know that this works on Linux, as the other question is OSX-specific, @sathya – earthmeLon Nov 18 '14 at 22:02
up vote 32 down vote accepted

Create a file named .inputrc in your home directory, and place this line in it:

set completion-ignore-case on

Then open a new shell and try it out.

share|improve this answer
This will prevent bash from reading the defaults from /etc/inputrc, breaking things like navigation with ctrl-left/right. Make sure to add $include /etc/inputrc in your ~/.inputrc. – Nicolas Marchildon Mar 30 '15 at 18:47
You can also use bind -f ~/.inputrc to reload this change. – bishop Apr 12 at 13:31

Not the answer you're looking for? Browse other questions tagged .