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.47k stars 947 forks source link

Unexpected separator symbol at beginning of new line in multiline prompt #1145

Closed ThomasHezard closed 5 years ago

ThomasHezard commented 5 years ago

Hello all,

I'm quite new to the world of zsh and oh-my-zsh, and I just spent a few hours playing with powerlevel9k customization.

I currently have one issue I can't solve. Let me explain my config, and then detail what my issue is.

I use iTerm2 on macOS 10.14.2 Font is the patched Sauce Code Pro for Powerline from NerdFonts. Everything is kept up-to-date.

My prompt contains 4 lines,

Here is a screenshot of my config: pl9k

And here is my .zshrc:

POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_DISABLE_RPROMPT=true
POWERLEVEL9K_MODE="awesome-fontconfig"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(status history date time battery ip public_ip ram swap background_jobs newline newline dir_writable dir vcs newline root_indicator os_icon context anaconda)
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%F{yellow}❯ "
POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX_ICON=""
POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX=""
POWERLEVEL9K_DATE_FORMAT=%D{%Y.%m.%d}
ZSH_THEME="powerlevel9k"
[...]
plugins=(git gitfast zsh-syntax-highlighting zsh-autosuggestions)

My problem

As you can see, although I removed all new line prefix elements, all but first line of my multiline prompt start with a weird separator symbol. I found some pages about similar issues (#977), but no solution worked for me.

Is this a bug of something I messed up ?

ThomasHezard commented 5 years ago

I finally found my solution here: #978

Fixed it manually while waiting for release 0.7.0 :)