Fixed PROMPT_COMMAND from being duplicated
This commit is contained in:
parent
9b5c2c497c
commit
1701cc1189
|
@ -4,4 +4,6 @@ export HISTFILESIZE=100000 # big big history
|
||||||
shopt -s histappend # append to history, don't overwrite it
|
shopt -s histappend # append to history, don't overwrite it
|
||||||
|
|
||||||
# Save and reload the history after each command finishes
|
# Save and reload the history after each command finishes
|
||||||
|
if ! [[ "$PROMPT_COMMAND" =~ "history -a; history -c; history -r;" ]]; then
|
||||||
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
|
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue