Showing posts with label bash. Show all posts
Showing posts with label bash. Show all posts

Monday, October 17, 2011

Making Tab Completion Case Insensitive in Bash

When using the bash command line, I prefer to be able to type "cd dow" and then hit Tab and have bash fill in Downloads. By default, in order to access Downloads, I would have to type an uppercase "D" ("cd Dow") and hit Tab. Luckily, this is very easy to change.

Simply type the following at the prompt:

set completion-ignore-case on


To make it permanent, add the line to either /etc/inputrc or $HOME/.inputrc. The next time you log in this will be set automatically.