summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorChristian Rebischke <Chris.Rebischke@posteo.de>2017-04-16 17:53:48 +0300
committerChristian Rebischke <Chris.Rebischke@posteo.de>2017-04-16 17:53:48 +0300
commit2a8259e12845ca3e8c9674a0e6fa2e738db34ef8 (patch)
tree3418f244191201f14f99524cace542b6b1a39369 /powerlevel9k.zsh-theme
parent2be5d5071eaec4b6baecd45bca9ecb085953b763 (diff)
[SVN] removed %b identifier to fix color encoding
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme6
1 files changed, 6 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 2a9a159f..1c4d338d 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1145,6 +1145,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