mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-10-01 01:04:29 +00:00
skip worker hooks for 'time' if POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME is not set
This commit is contained in:
@@ -6310,6 +6310,7 @@ function _p9k_init_cacheable() {
|
|||||||
segments+=net_iface
|
segments+=net_iface
|
||||||
fi
|
fi
|
||||||
for elem in $segments; do
|
for elem in $segments; do
|
||||||
|
[[ $elem == time && $_POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME == 0 ]] && continue
|
||||||
local f_init=_p9k_prompt_${elem}_init
|
local f_init=_p9k_prompt_${elem}_init
|
||||||
local f_compute=_p9k_prompt_${elem}_compute
|
local f_compute=_p9k_prompt_${elem}_compute
|
||||||
if (( $+functions[$f_init] || $+functions[$f_compute] )); then
|
if (( $+functions[$f_init] || $+functions[$f_compute] )); then
|
||||||
|
|||||||
Reference in New Issue
Block a user