summaryrefslogtreecommitdiff
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
parent6500a3293a70a7c112cde792be21f9e8ab4e7aeb (diff)
Moved histfile to zsh cache directore
-rw-r--r--etc/parameters2
-rw-r--r--hooks/post-update5
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
+}