summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-05 23:26:16 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-05 23:26:16 +0100
commit71ae8d9f4a8dfdbcb788b4a03deac6d745515a29 (patch)
treed54e8bc126a2d5c012d3f8175ca5dd47b0c7e547 /hooks
parent6500a3293a70a7c112cde792be21f9e8ab4e7aeb (diff)
Moved histfile to zsh cache directore
Diffstat (limited to 'hooks')
-rw-r--r--hooks/post-update5
1 files changed, 5 insertions, 0 deletions
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
+}