Disable System Beeps over SSH

You can set readline variables at any time using the bind command, without needing to read an .inputrc file. For example, after you login type

bind 'set bell-style none'

Note how the command has to be a single string. If you want to do this automatically each time you could use a simple expect script taking the remote hostname as argument.

#!/usr/bin/expect -f
spawn ssh [lindex $argv 0]
expect {$ }
send "bind 'set bell-style none'\n"
expect {$ }
interact

Tags:

Linux

Bash

Audio