From a6a058081fc9a1138af84e88207d6b367af6ef2b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 3 Dec 2016 00:49:08 +1300 Subject: Terser way to implement quiet command failures Wrap it in curly brackets to make it a compound command --- sh/shrc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sh') 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)) -- cgit v1.2.3