diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-08 10:41:59 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-08 10:41:59 +0300 |
commit | ed9d5a7088b2427bb261d7771db9fa3025984367 (patch) | |
tree | 148ffe039d4f05b425d18d439d501f1f523d3ab9 /gitstatus | |
parent | 05dad31f3f2fa83fb9f60c08d045c85347fbf545 (diff) | |
parent | 54c98228342043612ea83eaaf13ac13659c26295 (diff) |
Merge commit '54c98228342043612ea83eaaf13ac13659c26295'
Diffstat (limited to 'gitstatus')
-rw-r--r-- | gitstatus/gitstatus.plugin.sh | 3 | ||||
-rw-r--r-- | gitstatus/gitstatus.plugin.zsh | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gitstatus/gitstatus.plugin.sh b/gitstatus/gitstatus.plugin.sh index d44d8cd7..685e81a2 100644 --- a/gitstatus/gitstatus.plugin.sh +++ b/gitstatus/gitstatus.plugin.sh @@ -164,6 +164,9 @@ function gitstatus_start() { (( ! _gitstatus_bash_downloaded )) || return [[ "${GITSTATUS_AUTO_INSTALL:-1}" -ne 0 ]] || return + [[ "$_gitstatus_bash_daemon" == \ + "${GITSTATUS_CACHE_DIR:-${XDG_CACHE_HOME:-$HOME/.cache}/gitstatus}"/* ]] || return + set -- -f "$@" _gitstatus_bash_daemon= _gitstatus_bash_version= diff --git a/gitstatus/gitstatus.plugin.zsh b/gitstatus/gitstatus.plugin.zsh index b4690727..66d128c2 100644 --- a/gitstatus/gitstatus.plugin.zsh +++ b/gitstatus/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= |