Created
July 14, 2023 16:23
-
-
Save wwarriner/8b0e3186af129989709fdc4f7980d7f4 to your computer and use it in GitHub Desktop.
History improvements for .bashrc
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
# History extensions | |
shopt -s histappend | |
export HISTCONTROL=ignoredups:erasedups # no duplicate entries | |
export HISTSIZE=1000 | |
export HISTFILESIZE=100000 | |
export HISTTIMEFORMAT='%F %T ' # Include history time stamps | |
# Save and reload the history after each command finishes | |
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment