]> id.pley.net Git - dotfiles.git/commitdiff
Add live appending history settings.
authorJer Noble <jer.noble@apple.com>
Wed, 16 Jan 2013 02:09:26 +0000 (18:09 -0800)
committerJer Noble <jer.noble@apple.com>
Wed, 16 Jan 2013 02:09:26 +0000 (18:09 -0800)
bash_login

index f2e8a464fd1d528f66e68252a0898a2684075369..72a9ca9243f5546527b4c4c9b2aeb505a5454c01 100644 (file)
@@ -21,3 +21,11 @@ export EDITOR=/usr/bin/vim
 export LSCOLORS=gxfxcxdxbxegedabagacad
 
 source ~/.dotfiles/webkit_login
 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"