History mod in bashrc

This commit is contained in:
Fergal Moran
2015-02-11 21:08:20 +00:00
parent 51767b64f2
commit e13d9735e3

9
bashrc
View File

@@ -124,3 +124,12 @@ export WORKON_HOME=~/.virtualenvs
. /usr/local/bin/virtualenvwrapper.sh
. ~/dotfiles/z.sh
source ~/.bash_prompt
export HISTCONTROL=ignoredups:erasedups # no duplicate entries
export HISTSIZE=100000 # big big history
export HISTFILESIZE=100000 # big big history
shopt -s histappend # append to history, don't overwrite it
# Save and reload the history after each command finishes
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"