From 5ae34b98fef0868e1c330cab63367206e955ed65 Mon Sep 17 00:00:00 2001 From: romkatv Date: Sat, 18 Jan 2020 17:27:53 +0100 Subject: [PATCH] skip worker hooks for 'time' if POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME is not set --- internal/p10k.zsh | 1 + 1 file changed, 1 insertion(+) 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