mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 08:20:10 +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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user