Powerlevel9k: Hide Branch Icon Doesn't Work

Created on 17 Feb 2017  路  8Comments  路  Source: Powerlevel9k/powerlevel9k

I have POWERLEVEL9K_HIDE_BRANCH_ICON=true set in my .zshrc and it doesn't seem to work.

bug master

All 8 comments

@alock - Thanks for the bug report! I'll have a look at that flag.

In the meantime, you should be able to achieve the same result by customizing the branch icon to make it empty.

Wiki instructions here: https://github.com/bhilburn/powerlevel9k/wiki/Stylizing-Your-Prompt#icon-customization

POWERLEVEL9K_VCS_BRANCH_ICON=''

Are you using the latest release, or the HEAD of master or next?

I haven't been able to reproduce this one. @alock - Can you grab the latest release and test again?

I can still replicate, but I am fine with the work-around you provided.

screen shot 2017-03-09 at 5 38 06 pm

@dritter - can you test this? I was unable to reproduce

Looking at the code, it seems that POWERLEVEL9K_HIDE_BRANCH_ICON is a top-level variable like POWERLEVEL9K_MODE..

@alock Could you try to move that variable to the top of your ~/.zshrc and see if that works?

```#THEME
POWERLEVEL9K_HIDE_BRANCH_ICON=true
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(status dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()

POWERLEVEL9K_VCS_BRANCH_ICON=''

POWERLEVEL9K_STATUS_VERBOSE=false
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle"
POWERLEVEL9K_SHORTEN_DIR_LENGTH=3
`` Ordering didn't change anything (above is what is set) but it might have something to do with my zgen configuration. Creating a new shell brings the icon back, but when I source~/.zshrc` it works.

screen shot 2017-03-14 at 4 49 53 pm

Could you make sure, that your P9K configuration stands before that line: source "${HOME}/.zgen/zgen.zsh"?

Thanks that worked I did not realize it had to be above the "${HOME}/.zgen/zgen.zsh"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shibumi picture shibumi  路  5Comments

gipert picture gipert  路  5Comments

davidmpaz picture davidmpaz  路  3Comments

guidoilbaldo picture guidoilbaldo  路  5Comments

iiison picture iiison  路  3Comments