Created
July 21, 2021 12:46
-
-
Save bhandras/fa386c7978a22176e3213a5d77f4884b to your computer and use it in GitHub Desktop.
unlimited 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
Add this to your `.bashrc`: | |
``` | |
export HISTFILESIZE= | |
export HISTSIZE= | |
export HISTFILE=~/.history | |
export HISTTIMEFORMAT="[%F %T] " | |
PROMPT_COMMAND="history -a; $PROMPT_COMMAND" | |
export HISTCONTROL=ignoredups | |
# append to the history file, don't overwrite it | |
shopt -s histappend | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment