首页 > Windows开发 > 详细

Disable beep in WSL terminal on Windows 10 [closed]

时间:2022-05-27 19:15:52      阅读:8      评论:0      收藏:0      [点我收藏+]

https://stackoverflow.com/questions/36724209/disable-beep-in-wsl-terminal-on-windows-10

 

  1. To disable the beep in bash you need to uncomment (or add if not already there) the line set bell-style none in your /etc/inputrc file.

    Note: Since it is a protected file you need to be a privileged user to edit it (i.e. launch your text editor with something like sudo <editor> /etc/inputrc).

  2. To disable the beep also in vim you need to add set visualbell in your ~/.vimrc file.

  3. To disable the beep also in less (i.e. also in man pages and when using "git diff") you need to add export LESS="$LESS -R -Q" in your ~/.profile file.

 

Disable beep in WSL terminal on Windows 10 [closed]

原文:https://www.cnblogs.com/profesor/p/15334463.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!