diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-01 16:49:47 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-01 16:49:47 +1200 |
commit | 3f6d750e123c3a3c964b1aafc2a92a6a8a32f7fc (patch) | |
tree | 406379059f46fde6578d68629b7cb713a9a99eca | |
parent | Add an idea (diff) | |
download | dotfiles-3f6d750e123c3a3c964b1aafc2a92a6a8a32f7fc.tar.gz dotfiles-3f6d750e123c3a3c964b1aafc2a92a6a8a32f7fc.zip |
Move HISTSIZE and MAILCHECK to shrc
Turns out they're POSIX variables!
-rw-r--r-- | bash/bashrc | 6 | ||||
-rw-r--r-- | sh/shrc | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/bash/bashrc b/bash/bashrc index a62f2251..a48a9081 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -19,18 +19,12 @@ shopt -q restricted_shell && return # Keep around 32K lines of history in file HISTFILESIZE=$((1 << 15)) -# Keep around 4K lines of history in memory -HISTSIZE=$((1 << 12)) - # Ignore duplicate commands and whitespace in history HISTCONTROL=ignoreboth # Keep the times of the commands in history HISTTIMEFORMAT='%F %T ' -# Don't warn me about new mail -unset -v MAILCHECK - # Use a more compact format for the time builtin's output TIMEFORMAT='real:%lR user:%lU sys:%lS' @@ -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 |