Back to TILs

WSL — disable beep

Table of contents


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.

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=

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.