From 6c0fcf8e2c267412b7fefef1691059dc3ec879b5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 30 Sep 2018 07:49:29 +0200 Subject: only copy histfile if it exists --- hooks/post-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3