[svc][op]关闭linux centos各种声音
现在基本都用xshell了,直接xshell禁止即可
shell报警
#vi /etc/inputrc ================================ set bell-style none 或 echo "set bell-style none" >> ~/.bashrc /etc/bashrc setterm -blength 0
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=4 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=4 set expandtab set paste EOF . /etc/vimrc