# HG changeset patch # User edogawaconan # Date 1387786726 -32400 # Node ID 3979f3a55d0a094f816bc232258b15db36e0adee # Parent 257ad2cfb965abe00adecf184c9c8af1ade9232b Readd history autosync. diff -r 257ad2cfb965 -r 3979f3a55d0a rc/bashrc --- a/rc/bashrc Mon Dec 23 17:12:10 2013 +0900 +++ b/rc/bashrc Mon Dec 23 17:18:46 2013 +0900 @@ -53,15 +53,10 @@ unalias -a shopt -s histappend -HISTFILESIZE=10000 -HISTCONTROL=ignoreboth:erasedups -HISTSIZE=10000 -hsync() { - printf "%s" "Synchronizing history..." - history -a - history -n - printf "%s\n" done -} +HISTSIZE=20000 +HISTFILESIZE=$HISTSIZE +HISTCONTROL=ignorespace:ignoredups:erasedups +PROMPT_COMMAND='history -a; history -c; history -r' export PAGER=more export EDITOR=vi