To mute the beep in PowerShell 7.6.2 running in Windows Terminal, disable the bell both in Windows Terminal and in PSReadLine.
- In Windows Terminal, set the profile bell style to
"none"so the terminal never reacts to BEL:- Open Windows Terminal settings (JSON or UI).
- For the PowerShell profile, set:
"bellStyle": "none" - This prevents Windows Terminal from playing any bell sound or visual indication when BEL is emitted.
- In PowerShell 7.6.2, configure PSReadLine not to beep on errors or attention conditions:
- Run this in the PowerShell session:
Set-PSReadLineOption -BellStyle None - To make it persistent, add the same command to the PowerShell profile script.
- Run this in the PowerShell session:
With bellStyle set to "none" in Windows Terminal and -BellStyle None in PSReadLine, the beep is fully muted for PowerShell in Windows Terminal.
References: