Case insensitive bash auto-complete

Posted by Vitaly Polonetsky on Server Fault See other posts from Server Fault or by Vitaly Polonetsky
Published on 2010-12-30T14:27:01Z Indexed on 2010/12/30 14:56 UTC
Read the original article Hit count: 400

Is there a way to make the file/dir auto-complete in bash case insensitive?

For example I would like to write:
/opt/ibm/whatever/test [TAB]

And bash will auto-complete it to:
/opt/IBM/Whatever/TESTfile

Or at least only the last part of test to TESTfile.

I know that filesystems are case-sensitive, I just don't want to remember which parts are UPPER-case, I want auto-complete to fix the path for me.

And if I have both TESTfile and testfile, just show me both of them like bash does today with auto-complete conflicts.

© Server Fault or respective owner

Related posts about linux

Related posts about bash