Created
March 8, 2021 09:48
-
-
Save firatoezcan/33a0848b9cff7a3e93e753fa403260c9 to your computer and use it in GitHub Desktop.
Infinite bash history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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