summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2016-03-04 00:59:11 +0300
committerBen Hilburn <bhilburn@gmail.com>2016-03-04 00:59:11 +0300
commit4f0c3ffdf838955741894b52fab6b41d312ab167 (patch)
tree160af0c2fdc95bf827c315136701fa282252e596
parentd6902db6ef790d6b867dfe9a21d843a162533284 (diff)
parent9d8041fc7669fc539a4d7afecbe9d2d6024d30ba (diff)
Fixing #217, also making the `actionformats` color configurable in VCS segment.
-rwxr-xr-xpowerlevel9k.zsh-theme7
1 files changed, 4 insertions, 3 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index d573f6f9..72d37318 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,7 @@ 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:*' stagedstr " $(print_icon 'VCS_STAGED_ICON')"
zstyle ':vcs_info:*' unstagedstr " $(print_icon 'VCS_UNSTAGED_ICON')"