Setting method of ignoring case in Bash shell


Most people will change bash when they use it, because the default setting is really hard to use ~

Refer to the following ~ / Inputrc settings:

Copy 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, the prompt will appear only after you press < tab > twice. After show all if ambiguous is turned on, you only need to press it once.
Turn off match hidden files and don’t show hidden files. Especially when you’re in the home directory, you’ll feel so clean in front of you.
Turn on completion ignore case and ignore case. When writing PHP, I estimate that about 1 / 4 of the keys are Shift + 4, damn dollar sign! Shell command, I don’t want to entangle with capital letters anymore. Let < tab > handle it.
History Search – *, enter a few letters, press the up and down arrows to search your history command.

For more bash customization, please refer to:

Recommended Today

Talk about deconstruction in JS ES6

summary ES6 adds a new way to get specified elements from arrays or objects, which is what we want to talk about today. Let’s talk about the deconstruction of arrays first Before deconstruction, we usually get the specified elements in the array according to the index: const arr = [1, 2, 3]; const a = […]