mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 04:10:07 +00:00
add POWERLEVEL9K_GITSTATUS_INIT_TIMEOUT_SEC
This commit is contained in:
parent
bbea8d2d06
commit
630c1868df
1 changed files with 4 additions and 2 deletions
|
@ -7611,6 +7611,7 @@ _p9k_init_params() {
|
||||||
_p9k_declare -i POWERLEVEL9K_VCS_COMMITS_AHEAD_MAX_NUM -1
|
_p9k_declare -i POWERLEVEL9K_VCS_COMMITS_AHEAD_MAX_NUM -1
|
||||||
_p9k_declare -i POWERLEVEL9K_VCS_COMMITS_BEHIND_MAX_NUM -1
|
_p9k_declare -i POWERLEVEL9K_VCS_COMMITS_BEHIND_MAX_NUM -1
|
||||||
_p9k_declare -b POWERLEVEL9K_VCS_RECURSE_UNTRACKED_DIRS 0
|
_p9k_declare -b POWERLEVEL9K_VCS_RECURSE_UNTRACKED_DIRS 0
|
||||||
|
_p9k_declare -F POWERLEVEL9K_GITSTATUS_INIT_TIMEOUT_SEC 5
|
||||||
_p9k_declare -b POWERLEVEL9K_DISABLE_GITSTATUS 0
|
_p9k_declare -b POWERLEVEL9K_DISABLE_GITSTATUS 0
|
||||||
_p9k_declare -e POWERLEVEL9K_VI_INSERT_MODE_STRING "INSERT"
|
_p9k_declare -e POWERLEVEL9K_VI_INSERT_MODE_STRING "INSERT"
|
||||||
_p9k_declare -e POWERLEVEL9K_VI_COMMAND_MODE_STRING "NORMAL"
|
_p9k_declare -e POWERLEVEL9K_VI_COMMAND_MODE_STRING "NORMAL"
|
||||||
|
@ -8381,7 +8382,7 @@ _p9k_must_init() {
|
||||||
[[ $sig == $_p9k__param_sig ]] && return 1
|
[[ $sig == $_p9k__param_sig ]] && return 1
|
||||||
_p9k_deinit
|
_p9k_deinit
|
||||||
fi
|
fi
|
||||||
_p9k__param_pat=$'v145\1'${(q)ZSH_VERSION}$'\1'${(q)ZSH_PATCHLEVEL}$'\1'
|
_p9k__param_pat=$'v146\1'${(q)ZSH_VERSION}$'\1'${(q)ZSH_PATCHLEVEL}$'\1'
|
||||||
_p9k__param_pat+=$__p9k_force_term_shell_integration$'\1'
|
_p9k__param_pat+=$__p9k_force_term_shell_integration$'\1'
|
||||||
_p9k__param_pat+=$'${#parameters[(I)POWERLEVEL9K_*]}\1${(%):-%n%#}\1$GITSTATUS_LOG_LEVEL\1'
|
_p9k__param_pat+=$'${#parameters[(I)POWERLEVEL9K_*]}\1${(%):-%n%#}\1$GITSTATUS_LOG_LEVEL\1'
|
||||||
_p9k__param_pat+=$'$GITSTATUS_ENABLE_LOGGING\1$GITSTATUS_DAEMON\1$GITSTATUS_NUM_THREADS\1'
|
_p9k__param_pat+=$'$GITSTATUS_ENABLE_LOGGING\1$GITSTATUS_DAEMON\1$GITSTATUS_NUM_THREADS\1'
|
||||||
|
@ -8661,7 +8662,7 @@ _p9k_init_vcs() {
|
||||||
() {
|
() {
|
||||||
trap 'return 130' INT
|
trap 'return 130' INT
|
||||||
{
|
{
|
||||||
gitstatus_start_p9k_ POWERLEVEL9K
|
gitstatus_start_p9k_ -t $_POWERLEVEL9K_GITSTATUS_INIT_TIMEOUT_SEC POWERLEVEL9K
|
||||||
} always {
|
} always {
|
||||||
trap ':' INT
|
trap ':' INT
|
||||||
}
|
}
|
||||||
|
@ -8705,6 +8706,7 @@ _p9k_init_vcs() {
|
||||||
-d $_POWERLEVEL9K_VCS_UNTRACKED_MAX_NUM \
|
-d $_POWERLEVEL9K_VCS_UNTRACKED_MAX_NUM \
|
||||||
-c $_POWERLEVEL9K_VCS_CONFLICTED_MAX_NUM \
|
-c $_POWERLEVEL9K_VCS_CONFLICTED_MAX_NUM \
|
||||||
-m $_POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY \
|
-m $_POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY \
|
||||||
|
-t $_POWERLEVEL9K_GITSTATUS_INIT_TIMEOUT_SEC \
|
||||||
${${_POWERLEVEL9K_VCS_RECURSE_UNTRACKED_DIRS:#0}:+-e} \
|
${${_POWERLEVEL9K_VCS_RECURSE_UNTRACKED_DIRS:#0}:+-e} \
|
||||||
POWERLEVEL9K
|
POWERLEVEL9K
|
||||||
} always {
|
} always {
|
||||||
|
|
Loading…
Reference in a new issue