diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-04-19 01:14:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 01:14:12 +0300 |
commit | ddc425a8400b061f32da47fe6a423184794b6915 (patch) | |
tree | 08031b39c1a29ccbb0130e3b30d26ebcd3d27490 | |
parent | c70bb0d4ee24d23c2c10e0c981f9236589315f9d (diff) | |
parent | 2a8259e12845ca3e8c9674a0e6fa2e738db34ef8 (diff) |
Merge pull request #484 from shibumi/svn-debugging
[SVN] removed %b identifier to fix color encoding
-rwxr-xr-x | powerlevel9k.zsh-theme | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index ba458fbf..f6ab1225 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -1150,6 +1150,12 @@ powerlevel9k_vcs_init() { zstyle ':vcs_info:hg*:*' get-bookmarks true zstyle ':vcs_info:hg*+gen-hg-bookmark-string:*' hooks hg-bookmarks + # For svn, only + # TODO fix the %b (branch) format for svn. Using %b breaks + # color-encoding of the foreground for the rest of the powerline. + zstyle ':vcs_info:svn*:*' formats "$VCS_CHANGESET_PREFIX%c%u" + zstyle ':vcs_info:svn*:*' actionformats "$VCS_CHANGESET_PREFIX%c%u %F{${POWERLEVEL9K_VCS_ACTIONFORMAT_FOREGROUND}}| %a%f" + if [[ "$POWERLEVEL9K_SHOW_CHANGESET" == true ]]; then zstyle ':vcs_info:*' get-revision true fi |