all repos — archive/dotfiles @ ecad7cfbba68231a54afdee78e2f256c78519db4

Superseded by nixfiles

zsh: load and save history
Alan Pearce alan@alanpearce.uk
Wed, 26 Oct 2016 14:23:33 +0200
commit

ecad7cfbba68231a54afdee78e2f256c78519db4

parent

6ebfc7c5c6585836a0de12412a65b1419401301a

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M tag-zsh/config/zsh/zshrctag-zsh/config/zsh/zshrc
@@ -15,6 +15,10 @@ zplug "gerges/oh-my-zsh-jira-plus", as:plugin, if:"[[ ${(SN)HOST%spotcap} ]]" zplug "lukechilds/zsh-better-npm-completion", if:"[[ -n $commands[npm] ]]", nice:10
 zplug "hlissner/zsh-autopair", nice:10
 
+HISTSIZE=3000
+SAVEHIST=10000
+HISTFILE=${XDG_CACHE_HOME:=$HOME/.cache}/zsh/history
+
 WORDCHARS=${${WORDCHARS//[-.]}//[\/]}
 
 if [[ ${path[(I)$HOME/bin ]} ]]