bash: case-insensitive filename completion

terminalIt is rather difficult to remember the case of each and every filename. And while trying to look for it, or open it from vi, you must remember the filename if you are relying on TAB completion. There is a way to ignore the case for tab completion as I could find from the bash manual.

Add the following line in /etc/inputrc:

set completion-ignore-case on

Now as long as you remember the name of the file TAB completion will always work!

Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s