mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-10-01 01:04:29 +00:00
check for gitstatus.plugin.zsh existence in preinit
This commit is contained in:
+2
-1
@@ -4585,7 +4585,8 @@ _p9k_init_vcs() {
|
|||||||
(( threads <= 32 )) || threads=32
|
(( threads <= 32 )) || threads=32
|
||||||
fi
|
fi
|
||||||
typeset -g _p9k_preinit="function _p9k_preinit() {
|
typeset -g _p9k_preinit="function _p9k_preinit() {
|
||||||
source ${(q)gitstatus_dir}/gitstatus.plugin.zsh
|
[[ -r ${(q)gitstatus_dir}/gitstatus.plugin.zsh ]] || return
|
||||||
|
source ${(q)gitstatus_dir}/gitstatus.plugin.zsh || return
|
||||||
GITSTATUS_DAEMON=${(q)daemon} GITSTATUS_NUM_THREADS=$threads \
|
GITSTATUS_DAEMON=${(q)daemon} GITSTATUS_NUM_THREADS=$threads \
|
||||||
GITSTATUS_LOG_LEVEL=${(q)GITSTATUS_LOG_LEVEL} \
|
GITSTATUS_LOG_LEVEL=${(q)GITSTATUS_LOG_LEVEL} \
|
||||||
GITSTATUS_ENABLE_LOGGING=${(q)GITSTATUS_ENABLE_LOGGING} gitstatus_start \
|
GITSTATUS_ENABLE_LOGGING=${(q)GITSTATUS_ENABLE_LOGGING} gitstatus_start \
|
||||||
|
|||||||
Reference in New Issue
Block a user