From 71ae8d9f4a8dfdbcb788b4a03deac6d745515a29 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 5 Mar 2009 23:26:16 +0100 Subject: Moved histfile to zsh cache directore --- etc/parameters | 2 +- hooks/post-update | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 +} -- cgit v1.2.3