[20240801]定制inpurc属性.txt

来源:这里教程网 时间:2026-03-03 20:27:21 作者:

[20240801]定制inpurc属性.txt --//没事看了关于这个方面的信息,发现一些新版本bash shell的特性,适当的定制可以优化特性. --//设置时注意bash shell版本,看看相关man 文档是否支持. --//set blink-matching-paren On --//这样可以在输入成对()时,定位到前面一个在回到输入位置. --//set colored-stats On --//可以在命令补全文件或者目录时,使用彩色指示文件类型属性. --//set completion-display-width 120 --//设置命令补全的显示宽度,现在的显示器分辨率越来越高,限制显示范围感觉效果更好一些. --//set mark-symlinked-directories on --//在补全names带有symbolic links   的目录时附带有一个/追加到结尾. --//其他可以根据需要设置. --//set completion-ignore-case On --//忽略大小写.我个人不喜欢这样设置. --//set completion-map-case On --//当completion-ignore-case on时,不区分-_. --//set completion-prefix-display-length 3 --//就是如果文件前面一样,显示三个...,我测试感觉不是很好. --//enable-bracketed-paste (On)    When  set to On, readline will configure the terminal in a way that will enable it to insert each paste into the    editing buffer as a single string of characters, instead of treating each character as if it had been read from the    keyboard.  This can prevent pasted characters from being interpreted as editing commands. --//缺省是on,出于安全的考虑,现在避免多行拷贝(存在回车换行符号)时自动执行的情况.先给出提示,你可以简单尝试: echo 111 pwd --//选中copy,然后paste,在设置enable-bracketed-paste On的情况下,出现这样的情况: # echo 111^Jpwd^J 111 /root --//当然回车自动正常执行. --//enable-bracketed-paste Off # echo 111 111 # pwd --//停止这里,回车执行. /root

相关推荐