2022-05-26 08:52:54 -04:00
|
|
|
export HISTCONTROL=ignoreboth:erasedups # no duplicate entries
|
|
|
|
export HISTSIZE=100000 # big big history
|
|
|
|
export HISTFILESIZE=100000 # big big history
|
|
|
|
shopt -s histappend # append to history, don't overwrite it
|
|
|
|
|
|
|
|
# Save and reload the history after each command finishes
|
2022-09-27 06:32:00 -04:00
|
|
|
[[ -z "$(printenv PROMPT_COMMAND | grep 'history -')" ]] && \
|
|
|
|
export PROMPT_COMMAND="$PROMPT_COMMAND; history -a; history -c; history -r"
|