[bash] Fix history -a appending for starship prompts

This commit is contained in:
Sebastian Schulze 2024-10-17 21:23:52 +02:00
parent 75dd630e7b
commit f3d77c1f5c
No known key found for this signature in database
GPG key ID: F6BA63C6A7D3044E

View file

@ -43,7 +43,8 @@ shopt -s checkjobs
eval "$(zoxide init bash)"
if [[ $TERM != "dumb" ]]; then
eval "$(starship init bash --print-full-init)"
eval "$(starship init bash --print-full-init)"
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND; $'\n'}history -a; history -c; history -r"
fi
for f in ~/.config/bash/*.sh; do source $f; done