Login

Navigation

This articles is published 476 days ago and last updated 338 days ago, some information may be out of date.

Linux terminal tab completion prompt ignores case.png

Create an ".inputrc" file in the user's home directory.

touch .inputrc

Case-sensitive auto-completion

vim .inputrc

Enter set completion-ignore-case on

:wq save and exit

Display all possible choices

vim .inputrc

Enter set show-all-if-ambiguous on

:wq save and exit


In fact, this command can be used to do it all.

cat >> ".inputrc" << EOF
set completion-ignore-case on
set show-all-if-ambiguous on
EOF

Close the terminal and reopen the terminal.

Related: