Last Updated: February 25, 2016
·
1.187K
· waltflanagan

Case Insensitive tab completion

By default, HFS+ partitions in OSX are case-insensitive, but the command line (bash) is case-sensitive. So, even though /users/m.simons and /Users/M.Simons are the exact same folder on disk, typing /us<TAB> gets a nice hate inspiring thunk by default. Case-sensitivity can be disabled on a per user basis, or for the whole system with the following:

#For the current user:
echo "set completion-ignore-case on" >> ~/.inputrc

#System wide:
echo "set completion-ignore-case on" >> /etc/inputrc

The previous scripts will append 'set completion-ignore-case On' to either /etc/inputrc or ~/.inputrc. From now on, your shell should yell at you much less when using tab completion.