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 949 forks source link

NVM cut off #1023

Open sgript opened 5 years ago

sgript commented 5 years ago

I'm having this cut off problem for nvm left prompt elements:

screenshot 2018-10-12 at 23 17 39

My config is:

POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true
POWERLEVEL9K_MODE='awesome-patched'
POWERLEVEL9K_SHORTEN_DIR_LENGTH=3
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator dir nvm vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status zsh_showStatus)
POWERLEVEL9K_NVM_BACKGROUND='28'
POWERLEVEL9K_NVM_FOREGROUND='15'
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M \uE868  %d.%m}"
dritter commented 5 years ago

Hi @sgript !

Which Terminal Emulator do you use? It may be a workaround to add some space to the NVM icon.. The problem is that the icon used is a double width glyph, which overflows from one cell into the next one.

dustinmichels commented 5 years ago

I have this issue too.

Screen Shot 2019-03-22 at 10 27 50 AM

iTerm, 12pt Hack Regular Nerd Font

~/.zshrc

 34 POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs rbenv virtualenv anaconda nvm)
 35 POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time background_jobs root_indicator)
 36
 37 POWERLEVEL9K_VIRTUALENV_BACKGROUND="grey"
 38 POWERLEVEL9K_VIRTUALENV_VISUAL_IDENTIFIER_COLOR="green"
 39
 40 POWERLEVEL9K_ANACONDA_BACKGROUND="grey"
 41 POWERLEVEL9K_ANACONDA_VISUAL_IDENTIFIER_COLOR="green"
 42
 43 POWERLEVEL9K_MODE='nerdfont-complete'
 44 POWERLEVEL9K_PROMPT_ON_NEWLINE=true
 45
 46 POWERLEVEL9K_HOME_ICON='\uf06c'
 47
 48 export DEFAULT_USER="$USER"
 49
 50 ZSH_THEME="powerlevel9k/powerlevel9k"
dustinmichels commented 5 years ago

It works fine with numbers, just the word "system" gets truncated.

Screen Shot 2019-03-22 at 10 46 20 AM

romkatv commented 5 years ago

@sgript Could you check if this issue can be reproduced with Powerlevel10k?