Home » Questions » Computers [ Ask a new question ]

Case insensitive tab completion in Bash

Case insensitive tab completion in Bash

Is there any way to make Bash tab complete case insensitively?

Asked by: Guest | Views: 226
Total answers/comments: 2
Guest [Entry]

"Update the text in /etc/inputrc to include

set completion-ignore-case on

Then use ^X ^R to reload the configuration."
Guest [Entry]

"To avoid changing configuration for all users and to avoid root permissions use the following:

if [ ! -a ~/.inputrc ]; then echo '$include /etc/inputrc' > ~/.inputrc; fi
echo 'set completion-ignore-case on' >> ~/.inputrc

Then re-login or reload ~/.inputrc"