diff options
-rw-r--r-- | etc/parameters | 2 | ||||
-rw-r--r-- | hooks/post-update | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/etc/parameters b/etc/parameters index b3ca1f0..1e307cc 100644 --- a/etc/parameters +++ b/etc/parameters @@ -3,7 +3,7 @@ ## For application-related parameters, see zshenv # There's no point in having more history than what can be saved on disk -HISTFILE=~/.histfile +HISTFILE=~/var/cache/zsh/history HISTSIZE=50000 SAVEHIST=$HISTSIZE diff --git a/hooks/post-update b/hooks/post-update index d06d877..56f9956 100644 --- a/hooks/post-update +++ b/hooks/post-update @@ -31,3 +31,8 @@ echo export MAKEFLAGS=\ cd $PDIR/zsh/etc zcompile functions.zwc functions/* zcompile completions.zwc completions/* + +# Preserve old history +if [[ ! -e ~/var/cache/zsh/history ]] { + cp ~/.histfile ~/var/cache/zsh/history +} |