From: Alexander Barton Date: Sat, 10 Feb 2024 16:39:38 +0000 (+0100) Subject: Unset "p10k_instant_prompt" and add some more debug messages X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=bbbdb77799b4f5ae718d5dcfb6ad4884bd774ab4 Unset "p10k_instant_prompt" and add some more debug messages --- diff --git a/ax.zsh b/ax.zsh index ec11a3b..f210039 100644 --- a/ax.zsh +++ b/ax.zsh @@ -32,7 +32,11 @@ function axzsh_handle_stage { ( ! -o login && "$type" == "zshrc" && -n "$AXZSH_ZPROFILE_READ" ) \ ]]; then p10k_instant_prompt="${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" - [[ -r "$p10k_instant_prompt" ]] && source "$p10k_instant_prompt" + if [[ -r "$p10k_instant_prompt" ]]; then + [[ -n "$AXZSH_DEBUG" ]] && echo " Reading \"$p10k_instant_prompt\" ..." + source "$p10k_instant_prompt" + fi + unset p10k_instant_prompt fi # Initialize cache