X-Git-Url: http://105106.c2e0p.group/dotfiles.git/blobdiff_plain/4a6be118fffa3d7ec04189e434509918544552ff..4fda9c133d174a4cddb03b4a2f03694e77ec1a77:/bash_login

diff --git a/bash_login b/bash_login
index f2e8a46..72a9ca9 100644
--- a/bash_login
+++ b/bash_login
@@ -21,3 +21,11 @@ export EDITOR=/usr/bin/vim
 export LSCOLORS=gxfxcxdxbxegedabagacad
 
 source ~/.dotfiles/webkit_login
+
+# Preserve bash history in multiple terminal windows
+# http://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows
+export HISTSIZE=10000
+export HISTFILESIZE=10000
+export HISTCONTROL=ignoredups:erasedups
+shopt -s histappend
+export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"