Software development

How to remove Bash bell sound

Just installed a new virtual machine. The first thing I notice is that the bell sound is on in terminal. That thing drives me NUTS. Whoever thought up that beep must have had a very bad day – and decided to take it out on all Unix (and clones) users for all eternity!

Here is the command to turn it off – so I never have to look for it again:

echo 'set bell-style none' >> ~/.inputrc

Do that on all the users you expect to login to (for me that would be my main user and the oracle one) and bash will stay silent! Lovely.

Actually this will shut-up all programs using readline. Just an added bonus.