Get the App
SLTechnology News&Howtos  ›  Development  › 

How to set case ignored in Bash Shell

Shulou Source: shulou.com Published: 2022-06-03 09:24:40 09月30日 Update

This article mainly explains how to ignore case in Bash Shell. The explanation in this article is simple and clear, easy to learn and understand. Please follow the editor's train of thought to study and learn how to ignore case in Bash Shell.

/ .inputrc settings:

The 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, you will be prompted by pressing twice, but only once when show-all-if-ambiguous is turned on.

Turning off match-hidden-files does not show hidden files. Tebby is that when you are in the Home directory, you will feel so clean.

When completion-ignore-case is turned on, case is ignored. When I write PHP, I estimate that about 1 shift 4's keys are all shift + 4, damn dollar sign! Shell orders, I don't want to wrestle with uppercase letters anymore, just let it be done.

History-search-*, type a few letters and press the up and down arrows to search for your history commands.

Thank you for your reading, the above is the content of "how to set case in Bash Shell". After the study of this article, I believe you have a deeper understanding of how to set the case in Bash Shell, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Size learning content commands letters situation clean up and down code history uppercase uppercase letters that is ideas buttons files articles more directories knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Microsoft Huawei Redmi macOS