summary refs log tree commit diff stats
path: root/tag-zsh/config
diff options
context:
space:
mode:
authorAlan Pearce2016-10-26 14:23:33 +0200
committerAlan Pearce2016-10-26 14:23:33 +0200
commitecad7cfbba68231a54afdee78e2f256c78519db4 (patch)
tree987d322f9d36acdb49a39ce0a12436d3863d43ae /tag-zsh/config
parent6ebfc7c5c6585836a0de12412a65b1419401301a (diff)
downloadnixfiles-ecad7cfbba68231a54afdee78e2f256c78519db4.tar.lz
nixfiles-ecad7cfbba68231a54afdee78e2f256c78519db4.tar.zst
nixfiles-ecad7cfbba68231a54afdee78e2f256c78519db4.zip
zsh: load and save history
Diffstat (limited to 'tag-zsh/config')
-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 2a37b508..392343ad 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 ]} ]]