aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-03 00:49:08 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-03 00:49:08 +1300
commita6a058081fc9a1138af84e88207d6b367af6ef2b (patch)
tree417214b570c73aad068670dc466d2f498e0b10d7 /sh
parentEscape slash in mftl(1df) to soothe NetBSD awk(1) (diff)
downloaddotfiles-a6a058081fc9a1138af84e88207d6b367af6ef2b.tar.gz
dotfiles-a6a058081fc9a1138af84e88207d6b367af6ef2b.zip
Terser way to implement quiet command failures
Wrap it in curly brackets to make it a compound command
Diffstat (limited to 'sh')
-rw-r--r--sh/shrc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sh/shrc b/sh/shrc
index 0e1382aa..72773639 100644
--- a/sh/shrc
+++ b/sh/shrc
@@ -5,9 +5,7 @@ command -p mesg n
command -p stty -ixon -ctlecho 2>/dev/null
# If setterm(1) is available, tell it never to beep at me
-if command -v setterm >/dev/null 2>&1 ; then
- setterm -bfreq -blength 2>/dev/null
-fi
+{ setterm -bfreq -blength ; } >/dev/null >&2
# Keep around 4K lines of history in memory
HISTSIZE=$((1 << 12))