Disable PowerShell beep on backspace

One thing that I have found very annoying of the recent PowerShell versions is the beep that you hear when you press <BackSpace> and hit the beginning of the line. First I thought it was a setting in Windows 10 but I could not find it. And apparently that is the wrong place to look for it.

The beep sound is actually provided by the PSReadLine module which is used by default and also gives us these time saving keyboard shortcuts. See yesterday’s post. Turning the beep off is very easy. Just use the next command:

Set-PSReadlineOption -BellStyle None

After you executed this command you will not hear the beep anymore. At least not in your current PowerShell session. To make it permanent you need to put it in your profile script.

See also