mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 08:00:06 +00:00
skip worker hooks for 'time' if POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME is not set
This commit is contained in:
parent
8513fa63d9
commit
5ae34b98fe
1 changed files with 1 additions and 0 deletions
|
@ -6310,6 +6310,7 @@ function _p9k_init_cacheable() {
|
|||
segments+=net_iface
|
||||
fi
|
||||
for elem in $segments; do
|
||||
[[ $elem == time && $_POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME == 0 ]] && continue
|
||||
local f_init=_p9k_prompt_${elem}_init
|
||||
local f_compute=_p9k_prompt_${elem}_compute
|
||||
if (( $+functions[$f_init] || $+functions[$f_compute] )); then
|
||||
|
|
Loading…
Reference in a new issue