zthxxx / jovial

Jovial - A lovely zsh theme with responsive-design, it's pretty fast, keep simple but useful

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intellij terminal format break problem

1chz opened this issue Β· comments

First of all, thank you for a very nice project. πŸ‘

I am using M1 Mac Air.

The terminal uses iTerm, and the font is applied with Monaco.

There is no problem with iTerm, but there is a problem with the Intellij terminal.

Intellij font is Jetbrains Mono, and the font spacing is 1.0.

As you can see in the image, the branch name is displayed below the time, and the last character goes to the next line.

This problem only occurs in Intellij terminals.

Since the branch name is already displayed on the top line, I think it is redundant to display it again under the time.

What do you think about removing the branch name displayed under the time?

iTerm

image

Intellij Terminal

image

@shirohoo Thanks for feedback, but the second branch name (under the time) seems NOT caused by jovial theme.

Maybe you can show your .zshrc config, so that I could try to find the reason of the problem.

@zthxxx

I really thought that I might have misunderstood, so after registering the issue, I looked at it for a few more hours, but again, I was wrong.

I am really sorry.

It's very embarrassing, but the following code was inserted in one of the configuration files for ~.zshrc.

ZSH git framework settings - auto completion
autoload -Uz compinit && compinit
autoload -Uz vcs_info
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
setopt prompt_subst
RPROMPT=\$vcs_info_msg_0_
PROMPT=\$vcs_info_msg_0_'%# '
zstyle ':vcs_info:git:*' formats '%b'

I removed that code and it works very well as expected.

I raised the wrong issue because of my impatience.

I am very sorry for this part. πŸ™

Can I close the issue?

Lastly, thank you so much for making such a great project. πŸ₯°

Never mind, I'm glad that helped you