diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-05 23:26:16 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-05 23:26:16 +0100 |
commit | 71ae8d9f4a8dfdbcb788b4a03deac6d745515a29 (patch) | |
tree | d54e8bc126a2d5c012d3f8175ca5dd47b0c7e547 /hooks/post-update | |
parent | 6500a3293a70a7c112cde792be21f9e8ab4e7aeb (diff) |
Moved histfile to zsh cache directore
Diffstat (limited to 'hooks/post-update')
-rw-r--r-- | hooks/post-update | 5 |
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 +} |