comparison rc/bashrc @ 499:3979f3a55d0a

Readd history autosync.
author edogawaconan <me@myconan.net>
date Mon, 23 Dec 2013 17:18:46 +0900
parents 257ad2cfb965
children 072662ced8b8
comparison
equal deleted inserted replaced
498:257ad2cfb965 499:3979f3a55d0a
51 51
52 # Nuke aliases 52 # Nuke aliases
53 unalias -a 53 unalias -a
54 54
55 shopt -s histappend 55 shopt -s histappend
56 HISTFILESIZE=10000 56 HISTSIZE=20000
57 HISTCONTROL=ignoreboth:erasedups 57 HISTFILESIZE=$HISTSIZE
58 HISTSIZE=10000 58 HISTCONTROL=ignorespace:ignoredups:erasedups
59 hsync() { 59 PROMPT_COMMAND='history -a; history -c; history -r'
60 printf "%s" "Synchronizing history..."
61 history -a
62 history -n
63 printf "%s\n" done
64 }
65 60
66 export PAGER=more 61 export PAGER=more
67 export EDITOR=vi 62 export EDITOR=vi
68 export LANG="en_US.UTF-8" 63 export LANG="en_US.UTF-8"
69 export LC_CTYPE="en_US.UTF-8" 64 export LC_CTYPE="en_US.UTF-8"