dotfiles.2022/_home/dot_sz.shrc.d/bash.post/11_persistent.history
Gal Szkolnik 786431f769 Reanranging + Some useful shortcut
Still TODO: make sure each file is loaded only when it's supporting
prereqs exist
2022-05-26 08:52:54 -04:00

7 lines
394 B
Text

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
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"