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

Weird ~ (tilde) after time prompt #1364

Open MaxL opened 5 years ago

MaxL commented 5 years ago

I have the following config:

POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(background_jobs rbenv nvm time)
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M}"

and it works just great except for the weird little "~" after the year ( i guess there is also some excess whitespace behind it but i could live with that)

tilde

romkatv commented 5 years ago

Is this your whole config? What's the output of typeset -m 'POWERLEVEL9K_*'?

MaxL commented 5 years ago

Thanks for the reply, here is the output of typeset -m 'POWERLEVEL9K_*'

POWERLEVEL9K_STATUS_HIDE_SIGNAME=false
POWERLEVEL9K_IGNORE_TERM_COLORS=false
POWERLEVEL9K_CONTEXT_TEMPLATE=%n@%m
POWERLEVEL9K_HOST_TEMPLATE=%m
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND=black
POWERLEVEL9K_DISK_USAGE_CRITICAL_LEVEL=95
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( os_icon dir vcs status )
POWERLEVEL9K_ALWAYS_SHOW_USER=false
POWERLEVEL9K_DISK_USAGE_ONLY_WARNING=false
POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE_ALWAYS=false
POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL=90
POWERLEVEL9K_VI_INSERT_MODE_STRING=INSERT
POWERLEVEL9K_WHITESPACE_BETWEEN_RIGHT_SEGMENTS=' '
POWERLEVEL9K_STATUS_ERROR_BACKGROUND=red
POWERLEVEL9K_STATUS_OK=true
POWERLEVEL9K_INSTALLATION_PATH=/home/max/.antigen/bundles/bhilburn/powerlevel9k
POWERLEVEL9K_TIME_FORMAT='%D{%H:%M}'
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND=black
POWERLEVEL9K_VCS_SHOW_SUBMODULE_DIRTY=false
POWERLEVEL9K_DIR_HOME_FOREGROUND=black
POWERLEVEL9K_STATUS_CROSS=false
POWERLEVEL9K_SHORTEN_STRATEGY=truncate_middle
POWERLEVEL9K_VCS_SVN_HOOKS=( vcs-detect-changes svn-detect-changes )
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_STATUS_OK_BACKGROUND=green
POWERLEVEL9K_RPROMPT_ON_NEWLINE=false
POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=''
POWERLEVEL9K_DIR_PATH_HIGHLIGHT_BOLD=false
POWERLEVEL9K_VCS_INTERNAL_HASH_LENGTH=8
POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND=004
POWERLEVEL9K_VCS_HG_HOOKS=( vcs-detect-changes )
POWERLEVEL9K_VPN_IP_INTERFACE=tun
POWERLEVEL9K_FAIL_ICON=
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( background_jobs rbenv nvm time )
POWERLEVEL9K_SHORTEN_DIR_LENGTH=3
POWERLEVEL9K_DIR_PATH_SEPARATOR=/
POWERLEVEL9K_VCS_ACTIONFORMAT_FOREGROUND=red
POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false
POWERLEVEL9K_STATUS_ERROR_FOREGROUND=black
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='↳ '
POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=true
POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS=' '
POWERLEVEL9K_VCS_HIDE_TAGS=false
POWERLEVEL9K_MODE=awesome-fontconfig
POWERLEVEL9K_IGNORE_TERM_LANG=false
POWERLEVEL9K_STATUS_VERBOSE=false
POWERLEVEL9K_USER_TEMPLATE=%n
POWERLEVEL9K_STATUS_OK_IN_NON_VERBOSE=false
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND=004
POWERLEVEL9K_HOME_ICON=☭
POWERLEVEL9K_DIR_HOME_BACKGROUND=004
POWERLEVEL9K_STATUS_OK_FOREGROUND=black
POWERLEVEL9K_STATUS_SHOW_PIPESTATUS=true
POWERLEVEL9K_LOAD_WHICH=5
POWERLEVEL9K_ALWAYS_SHOW_CONTEXT=false
POWERLEVEL9K_VI_COMMAND_MODE_STRING=NORMAL
POWERLEVEL9K_VCS_GIT_HOOKS=( vcs-detect-changes git-untracked git-aheadbehind git-stash git-remotebranch git-tagname )
POWERLEVEL9K_HOME_FOLDER_ABBREVIATION='~'
romkatv commented 5 years ago

Did you write this config by hand? My guess is that POWERLEVEL9K_MODE=awesome-fontconfig is incorrect.

Please run p10k configure and then type echo $POWERLEVEL9K_MODE. If it prints something other than awesome-fontconfig then this was indeed the problem. You can either keep using the new config created by the configuration wizard, or type rm ~/.p10k.zsh to get back to your own config (in which case you might want to change POWERLEVEL9K_MODE).

MaxL commented 5 years ago

wrote a lot of these myself yes...

POWERLEVEL9K_MODE=awesome-fontconfig is from option 3 of the poweline fonts installation in the wiki. I guess this is outdated? Because you're right if i remove thsi line from my config the tilde is gone, but then i'm missing the linux icon for example

I can't run p10k configure since i don't have p10k installed, would you recommend i switch over to p10k?

romkatv commented 5 years ago

I can't run p10k configure since i don't have p10k installed

Oops, sorry about that. I mistakenly thought this issue was filed against another github project.

would you recommend i switch over to p10k?

I'm not at liberty to make such recommendation.