changeset 499:3979f3a55d0a

Readd history autosync.
author edogawaconan <me@myconan.net>
date Mon, 23 Dec 2013 17:18:46 +0900
parents 257ad2cfb965
children faf6bc91feb5
files rc/bashrc
diffstat 1 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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