p10k
change
commit 38c607651e5c9525cd92ad1825f732d28b40f06d
author Alpha Chen <alpha@kejadlen.dev>
date
parent d2fdca2c
diff --git a/.p10k.zsh b/.p10k.zsh
index 0c385d6f..90fe8a15 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.
   #