From 38c607651e5c9525cd92ad1825f732d28b40f06d Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Mon, 15 Jan 2024 16:31:03 -0800 Subject: [PATCH] p10k --- .p10k.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.p10k.zsh b/.p10k.zsh index 0c385d6..90fe8a1 100644 --- a/.p10k.zsh +++ b/.p10k.zsh @@ -143,7 +143,9 @@ typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT=true # Add an empty line before each prompt. - typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true + # typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true + # https://github.com/romkatv/powerlevel10k/issues/2163#issuecomment-1397243389 + p10k-on-pre-prompt() p10k display empty_line=print # Connect left prompt lines with these symbols. typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX= @@ -1711,7 +1713,7 @@ # - always: Trim down prompt when accepting a command line. # - same-dir: Trim down prompt when accepting a command line unless this is the first command # typed after changing current working directory. - typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=always + typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=same-dir # Instant prompt mode. #