+ -

小技巧:在各种环境下如何禁用 beep

时间:2011-07-24

来源:LinuxTOY

在手机上看
手机扫描阅读
  

禁用各种环境下的 beep 。

 

禁用 bash shell 环境下的 beep

编辑 /etc/.inputrc, 添加一下设置,保存。

set bell-style none  

禁用 VIM 的 beep

编辑 ~/.vimrc ,添加一下设置,保存。

set noerrorbells set visualbells set t_vb= 

禁用 MinGW/msysgit 环境下的 beep

临时禁用

net stop beep 

永久禁用

sc config beep start= disabled     

参考链接

disable beeping noises on WinXP/Linux/VI

(完)

热门下载

更多