bashvisual-studiowindows-10

How do you disable the bell sound in Bash on Windows?


I'm currently using Bash on Windows 10 in my Visual Studio Code. The bell ring is extremely annoying and I would like a good solution to disable it (other that turning the volume off or not making any mistakes...).


Solution

  • Run this in your windows bash shell:

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

    or edit .inputrc manually, then add set bell-style none, and restart your open bash shell to take effect.