Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable beep in WSL terminal on Windows 10 [closed]

How to disable visual and audio bell/beep in WSL on Windows 10?

like image 535
Andrea Tulimiero Avatar asked Apr 19 '16 16:04

Andrea Tulimiero


People also ask

How do I turn off the beep Sound command?

Navigate: Sound settings -> Related Settings (Sound Control Panel) -> Sounds. Then click on the sound (critical beep/default beep) In "Sounds" dropdown scroll up to select "(None)" option. Apply.

How do I turn off the beeping Sound on Windows 10?

Now, under the Sounds tab, browse to and select the Default Beep. Now, towards the bottom of the Sound properties window, you will see a drop-down menu for Sounds. Select (None) and click on Apply/OK. This will disable the default system beep for good.

How do I turn off the beeping in Linux terminal?

You can disable system bell if in the Terminal you go to Edit->Current Profile->General and uncheck the Terminal Bell Or in the Configuration editor go to apps->Gnome-Terminal->Profiles->default check silent Bell.


1 Answers

  1. To disable the beep in bash you need to uncomment (or add if not already there) the line set bell-style none in your /etc/inputrc file.

    Note: Since it is a protected file you need to be a privileged user to edit it (i.e. launch your text editor with something like sudo <editor> /etc/inputrc).

  2. To disable the beep and the visual bell also in vim you need to add the following to your ~/.vimrc file:

    set visualbell set t_vb= 
  3. To disable the beep also in less (i.e. also in man pages and when using "git diff") you need to add export LESS="$LESS -R -Q" in your ~/.profile file.

like image 74
Andrea Tulimiero Avatar answered Sep 23 '22 11:09

Andrea Tulimiero