summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rw-r--r--hooks/post-update2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/post-update b/hooks/post-update
index cc4ed71..c5bd57f 100644
--- a/hooks/post-update
+++ b/hooks/post-update
@@ -28,6 +28,6 @@ zcompile functions.zwc functions/*
zcompile completions.zwc completions/*
# Preserve old history
-if [[ ! -e ~/var/cache/zsh/history ]] {
+if [[ -e ~/.histfile && ! -e ~/var/cache/zsh/history ]] {
cp ~/.histfile ~/var/cache/zsh/history
}