If I try to move the cursor passed the end of a block of text, Windows chimes a sound. How can I disable all such sounds?
I use set bell-style none in ~/.inputrc to silence all shell beeps.
set bell-style none
(Sorry,My English is poor)This method does not take effect for VIM, you need to close the Windows Sound.you shuld Open the Control Panel -> Open Hardware and Sound -> Open Sound ->Select Sound -> Modify the critical stop sound scheme(打开控制面板——>打开硬件和声音——>打开声音——>选择声音——>修改关键性停止的声音方案)
set bell-style none doesn't works for me. I use Volume Mixer to mute Console Window Host.
Console Window Host
bennyyip's suggestion to mute Console Window Host is the only thing that works for me.
But I still want a sound, just a nicer one. I think it's being played by the Beep Driver, which in Windows 10 plays the event "Critical Stop" which is "Windows Foreground.wav". It's a singularly horrible sound to have mapped to a console bell that rings every time bash completion is unhappy. You can set which sound is played in the Sound Driver (Windows Ding is better). Perhaps someone on the WSL team is equally annoyed by the sound and will sneak in a more mellifluous user experience.