-
There has a blank line before title when I open Konsole. even I run 'clear' command, this line still here. |
Beta Was this translation helpful? Give feedback.
Answered by
antoineco
Feb 21, 2023
Replies: 1 comment 3 replies
-
This behavior comes from the Pure prompt, not Zim. Pure is a third-party prompt. You can find a suggestion to achieve what you want at sindresorhus/pure#509 (comment). However, this is hacky and unsupported, so I'd recommend forking the prompt and making it your own instead. Remove the line below, then perform the following change to your config: diff --git a/pure.zsh b/pure.zsh
index dab82aa..9521240 100644
--- a/pure.zsh
+++ b/pure.zsh
@@ -188,7 +188,7 @@ prompt_pure_preprompt_render() {
if [[ $1 == precmd ]]; then
# Initial newline, for spaciousness.
- print
elif [[ $prompt_pure_last_prompt != $expanded_prompt ]]; then
# Redraw the prompt.
prompt_pure_reset_prompt -zmodule sindresorhus/pure --source async.zsh --source pure.zsh
+zmodule duan-1/pure --source async.zsh --source pure.zsh Apply with |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
duan-1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This behavior comes from the Pure prompt, not Zim. Pure is a third-party prompt.
You can find a suggestion to achieve what you want at sindresorhus/pure#509 (comment). However, this is hacky and unsupported, so I'd recommend forking the prompt and making it your own instead.
Remove the line below, then perform the following change to your config:
-zmod…