Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 947 forks source link

White colors on newline #977

Open ghost opened 6 years ago

ghost commented 6 years ago

When I do POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(vcs newline dir) it shows a white prompt, when removing it, there is no problem. image

dritter commented 6 years ago

This happens if the first left segment is conditional. The same happens if you disable the left prompt entirely.

ghost commented 6 years ago

So is there a way to disable it?

JulienPivard commented 6 years ago

@midnio Could you tell me if that solves your problem ?

sainnhe commented 6 years ago

Same problem in Arch linux. Recently I upgrade "zsh-theme-powerlevel9k" package from version 0.6.4-1 to 0.6.6-1, then this occured. But when I downgrade this package to version 0.6.4-1, everything works fine. This is what I did: First of all, download zsh-theme-powerlevel9k-0.6.4-1-any.pkg.tar.xz from Archlinux Archive: zsh-theme-powerlevel9k Then, just run pacman -U to downgrade this package: sudo pacman -U zsh-theme-powerlevel9k-0.6.4-1-any.pkg.tar.xz Finnaly, add this line to /etc/pacman.conf in line 27 to tell pacman to skip this package from being upgraded: IgnorePkg = zsh-theme-powerlevel9k By this way, "zsh-theme-powerlevel9k" will keep in version 0.6.4-1, it's not a perfect way to solve this problem. Look forward to better solutions.

Besides, if you are using other distro, you can try to extract this package and then copy those files to their dir, or downgrade this package in another way.

Koschi13 commented 6 years ago

Same problem here. Downgrading didn't helped

the0neWhoKnocks commented 6 years ago

@JulienPivard I was having the same issue described by the OP, now I'm running 0.7.0 after seeing your PR. I'm using P9K_PROMPT_ON_NEWLINE=true and am seeing this

leading branch character.

If I don't set that variable I don't see the blue branch character. Any ideas that don't involve me keeping everything on one line?

JulienPivard commented 6 years ago

Hum I think that's normal behavior. You could try P9K_MULTILINE_NEWLINE_PROMPT_PREFIX=''. But if the problem persists, open a new issue and describe it again.