Created
July 8, 2015 19:55
-
-
Save pop/f07b24ea5715684cbc77 to your computer and use it in GitHub Desktop.
bash history sync
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
### This block syncs up my bash history file in my tmux sessons. | |
# avoid duplicates.. | |
export HISTCONTROL=ignoredups:erasedups | |
# append history entries.. | |
shopt -s histappend | |
# After each command, save and reload history | |
export PROMPT_COMMAND="history -a; history -c; history -r; $@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment