Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 21 down vote accepted

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

set completion-ignore-case On

Then open a new shell and try it out.

share|improve this answer
Awesome! Thank you! –  Wuffers Apr 16 '11 at 3:39
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 yesterday

Not the answer you're looking for? Browse other questions tagged or ask your own question.