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 --- hooks/post-update | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hooks/post-update') 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