Make Bash tab autocomplete case insensitive

By default, the Linux command line autocompletion does not ignore differences in uppercase vs lowercase.

Making bash autocomplete case insensitive is a small and easy way to make your Linux terminal experience much smoother.

The command bellow will make the autocomplete ignore differences in letter casing for all system users:

Affect all users
echo 'set completion-ignore-case On' | sudo tee -a /etc/inputrc

If you want make changes only for the current user, you can do this:

Affect only current user
echo 'set completion-ignore-case On' | tee -a ~/inputrc

For reverting the changes, you can simply edit the inputrc file and delete the set completion-ignore-case On line.

Easy right? A few other cool stuff you can add to inputrc can be found here.