Skip to content

how do I remove the blank line before title #499

Closed Answered by antoineco
duan-1 asked this question in Q&A
Discussion options

You must be logged in to vote

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
-zmod…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@duan-1
Comment options

@antoineco
Comment options

@duan-1
Comment options

Answer selected by duan-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants