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

Weird ~ (tilde) after time prompt #1364

Open
MaxL opened this issue Sep 18, 2019 · 5 comments
Open

Weird ~ (tilde) after time prompt #1364

MaxL opened this issue Sep 18, 2019 · 5 comments

Comments

@MaxL
Copy link

MaxL commented Sep 18, 2019

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
Copy link

romkatv commented Sep 18, 2019

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

@MaxL
Copy link
Author

MaxL commented Sep 18, 2019

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
Copy link

romkatv commented Sep 18, 2019

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
Copy link
Author

MaxL commented Sep 18, 2019

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
Copy link

romkatv commented Sep 18, 2019

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.

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

2 participants