projects
/
dotfiles-public.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
.bashrc.d/20nobeep: Change '-blength' -> '--blength'
[dotfiles-public.git]
/
src
/
.bashrc.d
/
20nobeep
1
# turn off terminal beep in X
2
if [ -n "$DISPLAY" ] && [ "$TERM" == "xterm" ]; then
3
if [ -x "$(command -v xset)" ]; then
4
xset b off
5
fi;
6
fi
7
8
# turn of terminal beeps in the console, unless connecting via SSH
9
if [ -n "$TERM" ] && [ -z "$SSH_CLIENT" ]; then
10
setterm --blength 0
11
fi