up vote 11 down vote favorite
5
share [g+] share [fb]

Is there any way to make Bash tab complete case insensitively?

$ bash --version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
Copyright (C) 2007 Free Software Foundation, Inc.

I am using Mac OS X 10.6

link|improve this question

feedback

1 Answer

up vote 15 down vote accepted

You should be able to use:

set completion-ignore-case on

add it to /etc/inputrc.

link|improve this answer
4  
"as well" - /etc/inputrc or ~/.inputrc or a file designated by INPUTRC are the only places it can go. Entering that at a Bash prompt won't work. – Dennis Williamson Jan 1 '10 at 21:11
whoops! you're right :) – John T Jan 1 '10 at 21:18
Thank you, works perfectly. – Jeffrey Aylesworth Jan 2 '10 at 0:00
1  
^X ^R to reload inputrc – grawity Jan 2 '10 at 9:37
@DennisWilliamson: you can do bind "set completion-ignore-case on" from the command line; for, I believe, that terminal session only – Clay Bridges Oct 4 '11 at 19:45
feedback

Your Answer

 
or
required, but never shown

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