From 7082a445988d3f6fb557ca5c6268a972f50b7493 Mon Sep 17 00:00:00 2001 From: Jipok Date: Sat, 6 Feb 2021 06:33:57 +0000 Subject: [PATCH] Fix .bash_history truncation on some sessions --- sensible.bash | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sensible.bash b/sensible.bash index a306610..4020881 100644 --- a/sensible.bash +++ b/sensible.bash @@ -62,6 +62,9 @@ PROMPT_COMMAND='history -a' HISTSIZE=500000 HISTFILESIZE=100000 +# Change the file location because some bash sessions truncate .bash_history +export HISTFILE=~/.history_bash + # Avoid duplicate entries HISTCONTROL="erasedups:ignoreboth"