From 97e9dd4c723fd6278029f9c2b6e035f770981b5d Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 5 Mar 2016 11:08:00 +0200
Subject: [PATCH] - Keep .bash_history consistent.

---
 .bashrc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.bashrc b/.bashrc
index e135058..da524c4 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
 
-- 
GitLab