From 629276540b783a66d6a2850839fc8178ceb5c719 Mon Sep 17 00:00:00 2001 From: caandt Date: Sun, 15 Mar 2026 19:31:49 -0500 Subject: [PATCH] bash --- user/config/bash/history | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/user/config/bash/history b/user/config/bash/history index 3ddee4f..779bb9a 100644 --- a/user/config/bash/history +++ b/user/config/bash/history @@ -11,4 +11,8 @@ HISTFILESIZE= HISTSIZE= HISTTIMEFORMAT="[%F %T] " HISTFILE=~/.cache/bash_history -PROMPT_COMMAND="history -a; $PROMPT_COMMAND" +if [ -z "$PROMPT_COMMAND" ]; then + PROMPT_COMMAND="history -a" +else + PROMPT_COMMAND="history -a; $PROMPT_COMMAND" +fi