现在基本都用xshell了,直接xshell禁止即可
shell报警
#vi /etc/inputrc
================================
set bell-style none
或
echo "set bell-style none" >> ~/.bashrc
/etc/bashrc
setterm -blength
gdm登录报警
vi /etc/gdm/custom.conf
==========================
[greeter]
Browser=true
SoundOnLogin=false echo "modprobe -r pcspkr" > /etc/modprobe.d/blacklist
vim报警声
vim /etc/vimrc
set vb t_vb=
===vim其他优化
set nu
set tabstop=
set nobackup
set cursorline
set ruler
set autoindent
set vb t_vb=
最近老用vimsalt,所以我将vim优化了下
cat >>/etc/vimrc<<EOF
set nu
set cursorline
set nobackup
set ruler
set autoindent
set vb t_vb=
set ts=
set expandtab
set paste
EOF
. /etc/vimrc