60-no-bell 306 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/sh -efu

cat >>"/etc/inputrc" <<EOF
# do not bell on tab-completion
set bell-style none
EOF

if [ -d /etc/X11/xinit.d ]; then
	cat >/etc/X11/xinit.d/disable-bell <<EOF
#!/bin/sh
# Generated by script during image creation
# Disable bell.
xset -b
EOF

chmod +x "/etc/X11/xinit.d/disable-bell" ||:
fi