Skip to content

how to get rid of this blank space #5388

Answered by mickimnet
jonas-frey asked this question in Q&A
Discussion options

You must be logged in to vote

If you include repo_root_style in your [directory] module, repo_root_format is used—which contains a space at the end, in the default configuration (see: Documentation -> Directory. The below configuration should work as intended. I also fixed a couple of issues with the format string (exchanged the \n before $character with the $line_break module and added a \ at the start of the format string, for better readability).

format = """\
	$directory\
	[](fg:#769ff0 bg:#394260)\
	$git_branch\
	$git_status\
	[](fg:#394260 bg:#1d2230)\
	$time\
	[ ](fg:#1d2230)\
	$cmd_duration\
	$line_break\
	$character
"""

add_newline = false

[character]
success_symbol = "[❯](fg:#769ff0)"
error_symbol = "[❯…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jonas-frey
Comment options

Answer selected by jonas-frey
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