powerlevel9k
powerlevel9k copied to clipboard
NVM cut off
I'm having this cut off problem for nvm left prompt elements:
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}"
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.
I have this issue too.
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"
It works fine with numbers, just the word "system" gets truncated.
@sgript Could you check if this issue can be reproduced with Powerlevel10k?