diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2016-03-04 00:30:58 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2016-03-04 00:30:58 +0300 |
commit | cd5c2e7dcde9adbf70776eba06ea235195fe3cdb (patch) | |
tree | b843e849a06142f2d715c55279f3874b20394e29 /powerlevel9k.zsh-theme | |
parent | d6902db6ef790d6b867dfe9a21d843a162533284 (diff) |
trying to debug color code that won't deref in `vcs_states`
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index d573f6f9..25ecd968 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -769,8 +769,9 @@ prompt_vcs() { typeset -AH vcs_states vcs_states=( 'clean' 'green' - 'modified' 'red' - 'untracked' 'yellow' + 'modified' 'yellow' + 'untracked' 'green' + 'actionformat' 'red' ) VCS_CHANGESET_PREFIX='' @@ -790,7 +791,8 @@ prompt_vcs() { VCS_DEFAULT_FORMAT="$VCS_CHANGESET_PREFIX%b%c%u%m" zstyle ':vcs_info:*' formats "$VCS_DEFAULT_FORMAT" - zstyle ':vcs_info:*' actionformats "%b %F{red}| %a%f" + zstyle ':vcs_info:*' actionformats "%b %F{${vcs_states['actionformat']}}| %a%f" + # zstyle ':vcs_info:*' actionformats "%b %F{red}| %a%f" zstyle ':vcs_info:*' stagedstr " $(print_icon 'VCS_STAGED_ICON')" zstyle ':vcs_info:*' unstagedstr " $(print_icon 'VCS_UNSTAGED_ICON')" |