Join my Laravel for REST API's course on Udemy 👀

Disable the beep sound in ZSH

May 20, 2022  ‐ 1 min read

In order to disable the beep or bell sound in your Zsh shell add the following unsetopt beep to your .zshrc config file.

The beep sound in your Zsh shell helps to indicate whenever you are doing something wrong. For example, it goes off when there are no autocomplete results. Although this might be useful for some, I find it a bit annoying.

Luckily we can disable the beep in our shell configuration.

# ~/.zshrc

# No bell: Shut up Zsh
unsetopt beep

The above configuration only disables beep sounds in your Zsh shell. You might still encounter a beep sound in other shells, like bash, or in a terminal text editor like vim.

As a quick reference:

To disable the bells in Vim add the following to your ~/.vimrc:

set noerrorbells

In order to disable the beep in your bash shell add the following to your ~/.inputrc file:

set bell-style none