From 8a70eedb851168057f53e9d72df7565e91aab832 Mon Sep 17 00:00:00 2001 From: Carl Mercier Date: Mon, 23 Jan 2017 17:42:25 -0500 Subject: [PATCH] Don't override PROMPT_COMMAND --- sensible.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensible.bash b/sensible.bash index a306610..b4d80db 100644 --- a/sensible.bash +++ b/sensible.bash @@ -56,7 +56,7 @@ shopt -s histappend shopt -s cmdhist # Record each line as it gets issued -PROMPT_COMMAND='history -a' +export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ;} history -a" # Huge history. Doesn't appear to slow things down, so why not? HISTSIZE=500000