From a2521e8e83123d1da965adebc94a92c9926cece1 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 10 Jun 2016 18:19:31 +0100 Subject: [PATCH] Fix the bash history appending. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index a48926c..bcadfe5 100755 --- a/.bashrc +++ b/.bashrc @@ -107,7 +107,7 @@ export HISTCONTROL=ignoredups:erasedups shopt -s histappend # After each command, save and reload history -export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a" +export PROMPT_COMMAND="history -a; ${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}" #-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------