CptBB
CptBB

Reputation: 115

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...).

Upvotes: 10

Views: 8329

Answers (2)

Anderson
Anderson

Reputation: 11

The selected answer does not work for the Bash terminal in my text editor (Windows 10 Home 22H2). Adding this to ~/.bashrc does the trick.

bind 'set bell-style none'

Upvotes: 1

rzin
rzin

Reputation: 266

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.

Upvotes: 25

Related Questions