這篇文章主要講解了“如何設(shè)置Bash Shell中忽略大小寫(xiě)”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“如何設(shè)置Bash Shell中忽略大小寫(xiě)”吧!
/.inputrc 設(shè)置:
代碼如下:
# 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
默認(rèn)情況下,按下兩次
關(guān)掉 match-hidden-files 不顯示隱藏文件,特比是當(dāng)你在 Home 目錄時(shí),你會(huì)覺(jué)得眼前好干凈。
開(kāi)啟 completion-ignore-case 忽略大小寫(xiě),寫(xiě) PHP 時(shí)我估計(jì)大約 1/4 的按鍵都是 shift + 4,該死的美元符號(hào)!Shell 命令,我不想再和大寫(xiě)字母糾纏了,讓
history-search-*,輸入幾個(gè)字母,按上下箭頭,搜索你的歷史命令。
感謝各位的閱讀,以上就是“如何設(shè)置Bash Shell中忽略大小寫(xiě)”的內(nèi)容了,經(jīng)過(guò)本文的學(xué)習(xí)后,相信大家對(duì)如何設(shè)置Bash Shell中忽略大小寫(xiě)這一問(wèn)題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián)網(wǎng)站建設(shè)公司,,小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!