aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-01 16:49:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-01 16:49:47 +1200
commit3f6d750e123c3a3c964b1aafc2a92a6a8a32f7fc (patch)
tree406379059f46fde6578d68629b7cb713a9a99eca /sh/shrc
parentAdd an idea (diff)
downloaddotfiles-3f6d750e123c3a3c964b1aafc2a92a6a8a32f7fc.tar.gz
dotfiles-3f6d750e123c3a3c964b1aafc2a92a6a8a32f7fc.zip
Move HISTSIZE and MAILCHECK to shrc
Turns out they're POSIX variables!
Diffstat (limited to 'sh/shrc')
-rw-r--r--sh/shrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sh/shrc b/sh/shrc
index 63268272..8dab79c6 100644
--- a/sh/shrc
+++ b/sh/shrc
@@ -13,6 +13,12 @@ command -p setterm -bfreq -blength 2>/dev/null
# Turn off flow control and control character echo
command -p stty -ixon -ctlecho 2>/dev/null
+# Keep around 4K lines of history in memory
+HISTSIZE=$((1 << 12))
+
+# Don't warn me about new mail
+unset -v MAILCHECK
+
# Load all the POSIX-compatible functions from ~/.shrc.d; more advanced shells
# like bash will have their own functions
for sh in "$HOME"/.shrc.d/*.sh ; do