mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 04:10:07 +00:00
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
This commit is contained in:
parent
9fd719c834
commit
54c9822834
2 changed files with 6 additions and 0 deletions
|
@ -164,6 +164,9 @@ function gitstatus_start() {
|
||||||
|
|
||||||
(( ! _gitstatus_bash_downloaded )) || return
|
(( ! _gitstatus_bash_downloaded )) || return
|
||||||
[[ "${GITSTATUS_AUTO_INSTALL:-1}" -ne 0 ]] || return
|
[[ "${GITSTATUS_AUTO_INSTALL:-1}" -ne 0 ]] || return
|
||||||
|
[[ "$_gitstatus_bash_daemon" == \
|
||||||
|
"${GITSTATUS_CACHE_DIR:-${XDG_CACHE_HOME:-$HOME/.cache}/gitstatus}"/* ]] || return
|
||||||
|
|
||||||
set -- -f "$@"
|
set -- -f "$@"
|
||||||
_gitstatus_bash_daemon=
|
_gitstatus_bash_daemon=
|
||||||
_gitstatus_bash_version=
|
_gitstatus_bash_version=
|
||||||
|
|
|
@ -414,6 +414,9 @@ function _gitstatus_daemon"${1:-}"() {
|
||||||
|
|
||||||
(( ! _gitstatus_zsh_downloaded )) || return
|
(( ! _gitstatus_zsh_downloaded )) || return
|
||||||
[[ ${GITSTATUS_AUTO_INSTALL:-1} == (|-|+)<1-> ]] || return
|
[[ ${GITSTATUS_AUTO_INSTALL:-1} == (|-|+)<1-> ]] || return
|
||||||
|
[[ $_gitstatus_zsh_daemon ==
|
||||||
|
${GITSTATUS_CACHE_DIR:-${XDG_CACHE_HOME:-$HOME/.cache}/gitstatus}/* ]] || return
|
||||||
|
|
||||||
set -- -f "$@"
|
set -- -f "$@"
|
||||||
_gitstatus_zsh_daemon=
|
_gitstatus_zsh_daemon=
|
||||||
_gitstatus_zsh_version=
|
_gitstatus_zsh_version=
|
||||||
|
|
Loading…
Reference in a new issue