summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2016-10-26 14:23:33 +0200
committerAlan Pearce2016-10-26 14:23:33 +0200
commitecad7cfbba68231a54afdee78e2f256c78519db4 (patch)
tree987d322f9d36acdb49a39ce0a12436d3863d43ae
parent6ebfc7c5c6585836a0de12412a65b1419401301a (diff)
downloaddotfiles-ecad7cfbba68231a54afdee78e2f256c78519db4.tar.lz
dotfiles-ecad7cfbba68231a54afdee78e2f256c78519db4.tar.zst
dotfiles-ecad7cfbba68231a54afdee78e2f256c78519db4.zip
zsh: load and save history
-rw-r--r--tag-zsh/config/zsh/zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index 2a37b50..392343a 100644
--- a/tag-zsh/config/zsh/zshrc
+++ b/tag-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 ]} ]]