mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-26 05:50:07 +00:00
Merge pull request #484 from shibumi/svn-debugging
[SVN] removed %b identifier to fix color encoding
This commit is contained in:
commit
ddc425a840
1 changed files with 6 additions and 0 deletions
|
@ -1150,6 +1150,12 @@ powerlevel9k_vcs_init() {
|
||||||
zstyle ':vcs_info:hg*:*' get-bookmarks true
|
zstyle ':vcs_info:hg*:*' get-bookmarks true
|
||||||
zstyle ':vcs_info:hg*+gen-hg-bookmark-string:*' hooks hg-bookmarks
|
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
|
if [[ "$POWERLEVEL9K_SHOW_CHANGESET" == true ]]; then
|
||||||
zstyle ':vcs_info:*' get-revision true
|
zstyle ':vcs_info:*' get-revision true
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue