aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-18 19:27:53 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-18 19:27:53 +0300
commit5ae34b98fef0868e1c330cab63367206e955ed65 (patch)
tree90c6e2e422c790260c51fafdabf5a29227fdfbcb /internal/p10k.zsh
parent8513fa63d951a202a0f22d040bc962f781f4fca1 (diff)
skip worker hooks for 'time' if POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME is not set
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 54303638..68c3cd29 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -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