How do I stop the Linux terminal in Windows from making the error sound?
If you want to stop bash
generating error sounds without affecting other Windows programs, type the following:
bind 'set bell-style none'
If you want a permanent change, add it to the end of ~/.bashrc
.
Here using the WLS (Ubuntu for Windows) I had to edit at:
/etc/inputrc
Just run it and restart the terminal
echo 'set bell-style none' >> /etc/inputrc