Created
June 3, 2016 06:29
-
-
Save cssence/0d87b263019d3a1c710983acb1e6ee6a to your computer and use it in GitHub Desktop.
Avoid history duplicates
This file contains hidden or 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
export HISTCONTROL=ignoredups:erasedups | |
shopt -s histappend | |
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment