From 8626c233ab117b7e20cce0582d0bf434ad98c100 Mon Sep 17 00:00:00 2001 From: Konstantin Hudyakov Date: Fri, 29 Mar 2024 16:59:03 +0200 Subject: [PATCH] [terminal] IDEA-350567 Edit POWERLEVEL9K_INSTANT_PROMPT only if it is present GitOrigin-RevId: 4d0a0c882d316f7375522c135697fd6f2c51c281 --- plugins/terminal/resources/shell-integrations/zsh/.zshenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/terminal/resources/shell-integrations/zsh/.zshenv b/plugins/terminal/resources/shell-integrations/zsh/.zshenv index ee458aa3dba7..ed1629600815 100644 --- a/plugins/terminal/resources/shell-integrations/zsh/.zshenv +++ b/plugins/terminal/resources/shell-integrations/zsh/.zshenv @@ -63,7 +63,7 @@ precmd_functions+=(_jedi_precmd_hook) # Disable p10k Instant Prompt feature: https://github.com/romkatv/powerlevel10k#instant-prompt # because it breaks our command blocks integration by showing the prompt immediately before '.zshrc' is fully sourced -if [ -n "${INTELLIJ_TERMINAL_COMMAND_BLOCKS:-}" ] +if [ -n "${POWERLEVEL9K_INSTANT_PROMPT:-}" ] && [ -n "${INTELLIJ_TERMINAL_COMMAND_BLOCKS:-}" ] then builtin typeset -g POWERLEVEL9K_INSTANT_PROMPT=off fi