macOS – How to Enable Case Insensitive Tab Completion in Bash

bashcommand linemacosshell

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

Best Answer

Update the text in /etc/inputrc to include

set completion-ignore-case on

Then use ^X ^R to reload the configuration.

Related Question