Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Black vertical lines in command segments #1224

Open
eblis opened this issue Mar 20, 2019 · 5 comments
Open

Black vertical lines in command segments #1224

eblis opened this issue Mar 20, 2019 · 5 comments

Comments

@eblis
Copy link

eblis commented Mar 20, 2019

Describe Your Issue

I'm getting black vertical lines (gaps) between segments, very similar to the ones shown in the Troubleshooting page but only on the left prompt elements.

Have you tried to debug or fix it?

image

From what I can tell my .zshrc config is ok, here's part of it:

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH

export TERM="xterm-256color"
POWERLEVEL9K_MODE='nerdfont-complete'

VIRTUAL_ENV_DISABLE_PROMPT=1

DEFAULT_USER=liboteanc
POWERLEVEL9K_VCS_STATUS_COMMAND=gitstatus_query_dir
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir_writable ssh dir background_jobs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time vcs time)
#POWERLEVEL9K_ROOT_ICON=$'\uF09C'
#POWERLEVEL9K_TIME_ICON=$'\uF017'
#POWERLEVEL9K_CUSTOM_RPROMPT_ICON=\\uF005
POWERLEVEL9K_TIME_BACKGROUND=magenta
POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND=orange1
POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=black
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S}"
POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND="012"

#POWERLEVEL9K_STATUS_OK=false

Environment Information

This information will help us understand your configuration.

  • zsh 5.4.2 (x86_64-ubuntu-linux-gnu)
  • I'm also using Oh-My-Zsh
  • I'm using the modified version Powerlevel10K which is backwards compatible with Powerlevel9K, albeit faster.
  • I use ROXTerm and Guake.

Issues with Fonts & Icons

You may delete this section if your issue is not font / icon related.

  • I'm using nerdfont-complete configuration with font "DejaVu SansMono Nerd Fontbook"
  • As far as I can tell I've configured ROXTerm to use the correct font
    image
@Syphdias
Copy link
Member

As far as I know, this is due to the font you use. I haven't found a font that does that perfectly especially the right side has been problematic for me. I use Cousine Nerd Font Regular with nerdfont-complete with is really close for me.

If somebody has a better fit, please let me know.

@romkatv
Copy link

romkatv commented Mar 21, 2019

Same here. It looks better with some fonts than with others but it never looks perfect.

The solution I've found is to stop using background altogether. As a bonus, it makes your prompt look lightweight and stylish. If this was the default, it's difficult to imagine many people would opt for the bulky prompt with background and useless icons.

Here's how my prompt looks like:

Pure Power

I removed all icons that don't add any information. For example, why have an icon of a clock in the time segment? For icons that do have meaning I chose non-bulky glyphs. You can see a regular + instead of the fat plus in a circle that is the default marker for staged files. The in the prompt is green if the last command has succeeded and red otherwise.

My config is here: https://github.com/romkatv/dotfiles-public/blob/master/.purepower.

@romkatv
Copy link

romkatv commented Mar 21, 2019

By the way, that POWERLEVEL9K_VCS_STATUS_COMMAND in your config doesn't do anything. It used to be required but not anymore. You can remove it. Powerlevel10k takes advantage of gitstatus automatically.

@eblis
Copy link
Author

eblis commented Mar 21, 2019

Hey Roman,

Thanks for replying and also for developing powerlevel10k which finally made me make the switch from powerline :)

Afair powerlevel10k is backwards compatible with 9k, have you tried merging the two repositories into a single one or are there irreconcilable differences between the two ?

@romkatv
Copy link

romkatv commented Mar 21, 2019

@eblis See #1170. I won't risk summarizing it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants