Прописываем в «.bashrc».
HISTTIMEFORMAT='%F %T ' HISTCONTROL=ignoredups:erasedups # no duplicate entries HISTSIZE=100000 # big big history HISTFILESIZE=100000 # big big history shopt -s histappend # append to history, don't overwrite it # Save and reload the history after each command finishes PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" |