Skip to content

Instantly share code, notes, and snippets.

@firatoezcan
Created March 8, 2021 09:48
Show Gist options
  • Save firatoezcan/33a0848b9cff7a3e93e753fa403260c9 to your computer and use it in GitHub Desktop.
Save firatoezcan/33a0848b9cff7a3e93e753fa403260c9 to your computer and use it in GitHub Desktop.
Infinite bash history
unset HISTFILESIZE
export HISTSIZE=10000
export HISTFILESIZE=10000
export HISTCONTROL=ignoredups:erasedups
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"
shopt -s histappend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment