diff --git a/.bashrc b/.bashrc
index e1350587c7b3155cef52503caad4ccedc48f91d0..da524c4a201b2c6298e9d34ead8a9ff8fc27dd90 100644
--- a/.bashrc
+++ b/.bashrc
@@ -1,8 +1,11 @@
 # If not running interactively, don't do anything
 [ -z "$PS1" ] && return
 
-export HISTCONTROL=ignoreboth
 export LANG=en_US.UTF8
+export HISTCONTROL=ignoreboth:erasedups
+export HISTSIZE=100000
+export HISTFILESIZE=100000
+export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
 shopt -s histappend
 shopt -s checkwinsize