miekg / lean

Pretty, minimal, one-line, fast ZSH prompt
Apache License 2.0
153 stars 38 forks source link

Black background around the prompt symbol after a failed command #44

Closed nicolasreich closed 5 years ago

nicolasreich commented 6 years ago

As you can see on this screenshot, there's a black background around the prompt symbol after a command terminated with a non-0 exit code, while when it's 0 it matches the terminal's background. I don't know if it's intended, but can it be changed somewhere? wrong_colours

PS: I really enjoy your theme, thanks for having shared it.

miekg commented 6 years ago

you're using it on a white background terminal I see. I personally use a black background, hence that color I guess. In prompt_lean_precmd()

    PROMPT="$prompt_lean_jobs%F{"$COLOR3"}${prompt_lean_tmux}%f`$PROMPT_LEAN_LEFT`%f%(?.%F{"$COLOR2"}.%B%F{203}%K{234})%#%f%k%b "

is wrong for you in the (?.%F{"$COLOR2"}.%B%F{203}%K{234})%# part

nicolasreich commented 6 years ago

It was for the example, I discovered it while trying out themes. Is it possible to make it transparent?

miekg commented 6 years ago

Probably

On Thu, 13 Sep 2018, 08:46 nicolasreich, notifications@github.com wrote:

It was for the example, I discovered it while trying out themes. Is it possible to make it transparent?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/miekg/lean/issues/44#issuecomment-420915300, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVkW5J4wVWjqQnFZEPEN_VbF1ntUaP7ks5uag1HgaJpZM4WmKtX .

nicolasreich commented 6 years ago

Got any pointer on how?

mikybars commented 5 years ago

Just dropping the %K{234} part works for me