Bash Shell中忽略大小写的设置方法
大多数人在使用 Bash 时,都会对其进行改造,因为默认的设置真的好难用~
参考以下 ~/.inputrc 设置:
复制代码 代码如下:
# 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
默认情况下,按下两次
关掉 match-hidden-files 不显示隐藏文件,特比是当你在 Home 目录时,你会觉得眼前好干净。
开启 completion-ignore-case 忽略大小写,写 PHP 时我估计大约 1/4 的按键都是 shift + 4,该死的美元符号!Shell 命令,我不想再和大写字母纠缠了,让
history-search-*,输入几个字母,按上下箭头,搜索你的历史命令。
更多 Bash 定制请参考:
https://wiki.ubuntu.com/Spec/EnhancedBash
栏 目:其它服务器
本文地址:https://zz.feitang.co/server/34917.html
您可能感兴趣的文章
- 01-06nginx从安装到配置详细说明(安装,安全配置,防盗链,动静分离,配置 HTTPS,性能优化)
- 01-06Nginx性能优化之Gzip压缩设置详解(最大程度提高页面打开速度)
- 01-06Linux系统 Centos7.4手动在线升级到Centos7.7
- 01-06详解nginx安装过程并代理下载服务器文件
- 01-06shell脚本根据进程查找指定容器的方法
- 01-06微服务架构拆分策略详解
- 01-06使用 Apache Dubbo 实现远程通信(微服务架构)
- 01-06微服务架构之服务注册与发现功能详解
- 01-06使用Zabbix 5.4.3监控IPMI的方法
- 01-06微服务架构之服务注册与发现实践示例详解






