Powerlevel9k: POWERLEVEL9K_SHOW_CHANGESET does not work

Created on 13 Sep 2017  路  5Comments  路  Source: Powerlevel9k/powerlevel9k

I would like to see the commit hash in my terminal so added POWERLEVEL9K_SHOW_CHANGESET to my ~/.zshrc but it does not seem to work. I'm using the latest version oh-my-zsh and powerlevel9k. Is there something wrong?

Here's the screenshot.

powerlevel9k_show_changeset

question

Most helpful comment

@jpdoria - Sorry for the delayed response, here!

Okay, as a quick test, would you mind moving your ZSH_THEME line to after your P9k variable definitions? The ZSH vcs_init subroutine is called only once, and I'm betting that field must be sot before that code is executed.

All 5 comments

mhh works for me. can you paste your whole .zshrc file?

Here are the lines from my .zshrc.

export ZSH=/Users/user/.oh-my-zsh
export TERM="xterm-256color"
POWERLEVEL9K_MODE='awesome-patched'
ZSH_THEME="powerlevel9k/powerlevel9k"
export UPDATE_ZSH_DAYS=3
HIST_STAMPS="yyyy-mm-dd"
plugins=(git)
plugins=(zsh-autosuggestions)
export PATH=$PATH:/Users/user/Dropbox/Documents/scripts/terraform/bin
source $ZSH/oh-my-zsh.sh
DEFAULT_USER="user"
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S \uE868  %Y-%m-%d}"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon context dir vcs virtualenv)
POWERLEVEL9K_SHOW_CHANGESET=true
POWERLEVEL9K_CHANGESET_HASH_LENGTH=7

@jpdoria - Sorry for the delayed response, here!

Okay, as a quick test, would you mind moving your ZSH_THEME line to after your P9k variable definitions? The ZSH vcs_init subroutine is called only once, and I'm betting that field must be sot before that code is executed.

Hey @jpdoria - I just wanted to check in on this!

Apologies. It's okay now. Thanks for the help guys!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mingrammer picture mingrammer  路  4Comments

worldofpeace picture worldofpeace  路  6Comments

natemccurdy picture natemccurdy  路  5Comments

DanielChabrowski picture DanielChabrowski  路  3Comments

hackerwin7 picture hackerwin7  路  4Comments