diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-03 00:49:08 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-03 00:49:08 +1300 |
commit | a6a058081fc9a1138af84e88207d6b367af6ef2b (patch) | |
tree | 417214b570c73aad068670dc466d2f498e0b10d7 /sh/shrc | |
parent | Escape slash in mftl(1df) to soothe NetBSD awk(1) (diff) | |
download | dotfiles-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/shrc')
-rw-r--r-- | sh/shrc | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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)) |