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.
Written by Mike Simons
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Osx
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#