aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-25 20:52:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-25 20:52:03 +1200
commit078cbacd0e09713f77aa78629c1f00253e9a5383 (patch)
tree5b198cbdbc2e744beac6c2c499b24c1a9841bf5a /bash/bashrc
parentFix pathname to Vim bundles (diff)
downloaddotfiles-078cbacd0e09713f77aa78629c1f00253e9a5383.tar.gz
dotfiles-078cbacd0e09713f77aa78629c1f00253e9a5383.zip
No need to test for stty/setterm existence
If they fail, they fail, and we don't care
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc8
1 files changed, 2 insertions, 6 deletions
diff --git a/bash/bashrc b/bash/bashrc
index d3960ea5..ea6a13f8 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -17,14 +17,10 @@ HISTTIMEFORMAT='%F %T '
unset MAILCHECK
# Never beep at me
-if command -v setterm &>/dev/null; then
- setterm -bfreq 0
-fi
+setterm -bfreq 0 2>/dev/null
# Turn off flow control and control character echo
-if command -v stty &>/dev/null; then
- stty -ixon -ctlecho
-fi
+stty -ixon -ctlecho 2>/dev/null
# Use completion, if available
if [[ -r /etc/bash_completion ]]; then