summaryrefslogtreecommitdiff
path: root/gitstatus.plugin.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-08 10:41:59 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-08 10:41:59 +0300
commit54c98228342043612ea83eaaf13ac13659c26295 (patch)
treed4e98a8963d6aad2ab048a07a87a91f1dd1e3fa6 /gitstatus.plugin.zsh
parent9fd719c834910c9734b0def927cc079654943a8d (diff)
Squashed 'gitstatus/' changes from 643091154..ec9c39499
ec9c39499 don't download gitstatusd if there is a bad version in usrbin git-subtree-dir: gitstatus git-subtree-split: ec9c39499a96ea8b181db15c76df5089959d3111
Diffstat (limited to 'gitstatus.plugin.zsh')
-rw-r--r--gitstatus.plugin.zsh3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitstatus.plugin.zsh b/gitstatus.plugin.zsh
index b4690727..66d128c2 100644
--- a/gitstatus.plugin.zsh
+++ b/gitstatus.plugin.zsh
@@ -414,6 +414,9 @@ function _gitstatus_daemon"${1:-}"() {
(( ! _gitstatus_zsh_downloaded )) || return
[[ ${GITSTATUS_AUTO_INSTALL:-1} == (|-|+)<1-> ]] || return
+ [[ $_gitstatus_zsh_daemon ==
+ ${GITSTATUS_CACHE_DIR:-${XDG_CACHE_HOME:-$HOME/.cache}/gitstatus}/* ]] || return
+
set -- -f "$@"
_gitstatus_zsh_daemon=
_gitstatus_zsh_version=