如何在Windows上禁用Bash中的铃声?

时间:2017-10-15 15:02:37

标签: bash visual-studio windows-10

我目前在Visual Studio代码中使用Windows 10上的Bash。铃声是非常烦人的,我想要一个很好的解决方案来禁用它(其他的是关闭​​音量或不犯任何错误......)。

1 个答案:

答案 0 :(得分:4)

在windows bash shell中运行:

echo "set bell-style none" >> ~/.inputrc
手动

或编辑.inputrc,然后添加set bell-style none,然后重新启动打开的bash shell即可生效。