From: Oleg Broytman Date: Sat, 8 Oct 2022 10:20:45 +0000 (+0300) Subject: .bashrc: `unset HISTFILE` if it was unset before X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=e2dd4852fbee0fd13b4c20197acefee175f1cdc9 .bashrc: `unset HISTFILE` if it was unset before --- diff --git a/.bashrc b/.bashrc index f1614c8..14eeaec 100644 --- a/.bashrc +++ b/.bashrc @@ -25,6 +25,12 @@ esac . "$HOME"/.shellrc +if [ "$HISTFILE" = "$HOME/.bash_history" ]; then + # This is the default value set by interactive bash + # when the global value was unset. Unset it here too. + unset HISTFILE +fi + # append to the history file, don't overwrite it shopt -s histappend