From: Colin Patrick McCabe Date: Mon, 5 Dec 2011 23:30:00 +0000 (-0800) Subject: .bashrc: use better bash history options X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7f44a2532e68e69735cec2712250b86d3e74807;p=cmccabe-etc .bashrc: use better bash history options Signed-off-by: Colin McCabe --- diff --git a/.bashrc b/.bashrc index bb5e384..6a2f2d9 100644 --- a/.bashrc +++ b/.bashrc @@ -41,3 +41,9 @@ esac # Perturb malloc so that we spot bugs quicker! export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) + +# Do not add lines that begin with a space to the history +export HISTIGNORE="[ ]*" + +# Append history list of current session to HISTFILE +shopt -s histappend