Commits

MrTux Hdb committed 3d40bfc

more shell history tweak

Comments (0)

Files changed (2)

 shopt -u mailwarn
 unset MAILCHECK               # Don't want my shell to warn me of incoming mail.
 
+# bash history tweak
+HISTCONTROL=ignoreboth:erasedups # ingore duplicates and spaces
+HISTTIMEFORMAT='%F %T '
+
+# don't append the following to history: consecutive duplicate
+# commands, ls, bg and fg, and exit
+HISTIGNORE='&:[bf]g:jobs:%1:%2:ls:cd:pwd:c:clear:exit'
+
 # ------------------------------------------------------------------------------
 # Test for an interactive shell.
 if [[ $- != *i* ]] ; then
 # Last Modified: 12/04/2012 05:42:32 AM
 
 # shell history tweaks
-HISTFILE=$HOME/.shell_history_`hostname`  # bash history filename
-HISTSIZE=100000                           # bash history will save N commands
-HISTFILESIZE=${HISTSIZE}                  # bash will remember N commands
-HISTCONTROL=ignoreboth:erasedups          # ingore duplicates and spaces
-HISTTIMEFORMAT='%F %T '
-
-# don't append the following to history: consecutive duplicate
-# commands, ls, bg and fg, and exit
-HISTIGNORE='&:[bf]g:jobs:%1:%2:ls:pwd:c:clear:exit'
+HISTFILE=$HOME/.shell_history_`hostname`  # shell history filename
+SAVEHIST=100000 # Remember about a years worth of history (AWESOME)
+HISTSIZE=100000                           # shell history will save N commands
+HISTFILESIZE=${HISTSIZE}                  # shell will remember N commands
 
 # Add $HOME/.bin to PATH
 export PATH=$HOME/.bin:$PATH