The setting method of ignoring case in Bash shell _linux Shell

Source: Internet
Author: User

Most people will change it when they use Bash, because the default settings are really hard to use.

Refer to the following ~/.INPUTRC settings:

Copy Code code as follows:

# don't 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 two times <tab> will appear prompts, show-all-if-ambiguous open, only need one time.
Turn off match-hidden-files do not show hidden files, especially when you are in the home directory, you will feel very clean.
Open Completion-ignore-case Ignore case, write PHP I estimate that about 1/4 of the keys are SHIFT + 4, damn dollar sign! Shell command, I do not want to be entangled with capital letters, let <tab> fix it.
history-search-*, enter a few letters and press up and down arrows to search your history commands.

For more Bash customization please refer to:

Https://wiki.ubuntu.com/Spec/EnhancedBash

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.