Case Insensitive Autocomplete in OSX

I tend to spend a lot of time in the OSX Terminal. One of the rather annoying defaults with this application is that, by default, autocomplete will be case sensitive. (Autocomplete is when you hit tab to automatically complete the file or folder name you are typing.) Some developers I know will simply try to keep all folder names lowercase to avoid this issue, but there is an easier way.

To get case insensitive autocomplete we need to make a change to the ~/.inputrc file. Inputrc is a file used to customize key-bindings defined by Readline, which is a library that handles reading input when using an interactive shell. By default this file doesn’t exist, so don’t be alarmed if you don’t see it.

This command will append the case insensitive setting to your ~/.inputrc file.

echo "set completion-ignore-case On" >> ~/.inputrc

Happy coding.