.bashrc: use better bash history options
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 5 Dec 2011 23:30:00 +0000 (15:30 -0800)
committerColin Patrick McCabe <cmccabe@nvidia.com>
Mon, 5 Dec 2011 23:30:00 +0000 (15:30 -0800)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

.bashrc

diff --git a/.bashrc b/.bashrc
index bb5e384..6a2f2d9 100644 (file)
--- 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