Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

Small Tip - make your tab completion case insensitive

Date: 2009-08-10 00:00:00 -0400

You may know that if you have a directory called

My-Documents

and you want to change to it, you have to do something like this

cd My-[TAB]

And you will end with the full command like this.

cd My-Documents

But, if you do this

cd my-[TAB]

You will probable hear the system's beep and nothing else, because Linux is case sensitive, if you want to be able to use TAB with capital letter or without it, add this line to /etc/inputrc, or to $HOME/.inputrc

set completion-ignore-case on

Now it will work with the capital My-Doc... or without it as in my-doc ...

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.