1
0
Fork 0
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:
romkatv 2020-01-18 17:27:53 +01:00
parent 8513fa63d9
commit 5ae34b98fe

View file

@ -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