SoFunction
Updated on 2025-03-10

How to ignore case settings in Bash Shell

Most people will transform it when using Bash because the default settings are really hard to use~

Refer to the following ~/.inputrc settings:

Copy the codeThe code is as follows:

# do not show hidden files in the list
set match-hidden-files off
 
# auto complete ignoring case
set show-all-if-ambiguous on
set completion-ignore-case on
"\ep": history-search-backward
"\e[A": history-search-backward
"\e[B": history-search-forward

By default, press <tab> twice before the prompt appears. After the show-all-if-ambiguous is turned on, it only takes once.
Turn off match-hidden-files and do not show hidden files. Tebi is when you are in the Home directory, you will feel that you are very clean.
Turn on completion-ignore-case to ignore case. When writing PHP, I estimate that about 1/4 of the keys are shift + 4, damn dollar signs! Shell command, I don't want to get entangled with capital letters anymore, let <tab> be done.
history-search-*, enter a few letters, press the up and down arrows to search for your history commands.

For more Bash customization, please refer to:

/Spec/EnhancedBash