From 4d9774ce4711a97d72b53bd448d7c5852171605a Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sun, 21 Apr 2024 22:13:09 +0200 Subject: [PATCH] P10k: Read config after enabling instant prompt This is how it is done in the official examples and enables instant prompt even earlier, which is great! --- ax.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ax.zsh b/ax.zsh index a0fb5d8..05f2002 100644 --- a/ax.zsh +++ b/ax.zsh @@ -17,8 +17,6 @@ function axzsh_handle_stage { # Look for some 3rd-party integrations ... # --- Powerlevel10k --- - # Read in Powerlevel10k configuration file, if not already read: - [[ -z "$POWERLEVEL9K_CONFIG_FILE" && -r ~/.p10k.zsh ]] && source ~/.p10k.zsh # Enable instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, # [y/n] confirmations, etc.) must be executed before this, so all ax-zsh @@ -38,6 +36,8 @@ function axzsh_handle_stage { fi unset p10k_instant_prompt fi + # Read in Powerlevel10k configuration file, if not already read: + [[ -z "$POWERLEVEL9K_CONFIG_FILE" && -r ~/.p10k.zsh ]] && source ~/.p10k.zsh # Initialize cache [[ -d "$AXZSH/cache" ]] || mkdir -p "$AXZSH/cache" -- 2.39.2