mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-25 16:31:57 +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_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=
|
||||
|
|
|
@ -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=
|
||||
|
|
Loading…
Reference in a new issue