Disable system bell in msys
08 February, 2009I am using Git on the command line in Windows via msysgit.
As with all msys installs whenever you press backspace and there is no more text to delete or you press TAB for auto-complete when there are multiple options, your speaker utters an horrendous, ugly beep.
To disable this, load msys and find out where your home directory is:
echo $HOME
Go to that directory (either in Windows or through msys) and create a new file called .inputrc
Put one line in that file:
set bell-style none
Save it and restart msys. You should now have no system bell! I’ve also seen it advised that you can disable your system bell by disabling the hardware emulation for this device in Device Manager, but this didn’t seem to work for me in Vista.
Comments
Liam
22 June, 2009 at 23:51
Andrey
19 July, 2009 at 07:58
Htbaa
21 July, 2009 at 07:20
Phil
22 July, 2009 at 17:14
don
09 December, 2009 at 16:15
Elijah Insua
12 December, 2009 at 05:36
Ben
25 June, 2011 at 14:23
Dylan
26 June, 2011 at 23:43
Fabian
06 September, 2011 at 16:58
Bl0ckeduser
21 February, 2012 at 23:36
Paul
25 February, 2012 at 09:47
haydn
14 January, 2014 at 12:32
Thanks 🙂 @ 1am that beep is quite loud!
Many thanks you saved my day.
Great tip about $HOME.
Thanks. Any idea how to make it shut up when using git-archive?
No idea, but it sounds more like a system setting to me. Check your Sounds config!
Thanks a lot! Here we are in a new millenium +1 decade and we still have “beepy” things from the 70’s.
Thanks! I used curl to grab a binary (without piping) and fell into a loud hell. Now it’s a bit quieter.
Thanks! The file already existed in my install (line 14). If this is the case for anyone else, just edit that line (change audible to none).
A more direct route would be to issue this command from the msys shell:
echo “set bell-style none” >> $HOME/.inputrc
Thanks. The beep already tortured by eardrums quite a few times, but not anymore 😉
Many thanks. I tried several other things but they didn’t work in MinGW.
This will disable tab-completion for directories for me. If you want to keep the settings you had before, you may do the following
cd $HOME && cp /etc/inputrc ./.inputrc && vim .inputrc
(Replace vim with the editor you prefer.)
Thanks! Great tip for me!