From 8dc5b34cc11b7d8cf43bb6b9c5061923256aa2eb Mon Sep 17 00:00:00 2001 From: chn Date: Fri, 22 Sep 2023 16:48:26 +0800 Subject: [PATCH] packages: fix p10k instant prompt --- modules/packages/default.nix | 1 - modules/packages/p10k-config/p10k.zsh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/packages/default.nix b/modules/packages/default.nix index c146be98..da38f78a 100644 --- a/modules/packages/default.nix +++ b/modules/packages/default.nix @@ -82,7 +82,6 @@ inputs: initExtraBeforeCompInit = '' # p10k instant prompt - typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet P10K_INSTANT_PROMPT="$XDG_CACHE_HOME/p10k-instant-prompt-''${(%):-%n}.zsh" [[ ! -r "$P10K_INSTANT_PROMPT" ]] || source "$P10K_INSTANT_PROMPT" HYPHEN_INSENSITIVE="true" diff --git a/modules/packages/p10k-config/p10k.zsh b/modules/packages/p10k-config/p10k.zsh index 803f0f51..b5259fff 100644 --- a/modules/packages/p10k-config/p10k.zsh +++ b/modules/packages/p10k-config/p10k.zsh @@ -1686,7 +1686,7 @@ # - verbose: Enable instant prompt and print a warning when detecting console output during # zsh initialization. Choose this if you've never tried instant prompt, haven't # seen the warning, or if you are unsure what this all means. - typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose + typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet # Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized. # For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload