diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-09-30 07:49:29 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-09-30 07:49:29 +0200 |
commit | 6c0fcf8e2c267412b7fefef1691059dc3ec879b5 (patch) | |
tree | fd4a5309cabbdbf778f08d1ea2d9f90fa62620c6 /hooks | |
parent | 9c9abeec69b08a5d3b9578ad91300f3a4fbce7b6 (diff) |
only copy histfile if it exists
Diffstat (limited to 'hooks')
-rw-r--r-- | hooks/post-update | 2 |
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 } |