diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2019-04-30 13:20:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 13:20:23 +0300 |
commit | 96f5482a8df662205abd7bb271efd79b357d85c5 (patch) | |
tree | 7aa2d60ece1edad46b7eb9f67b5905f0c8c00c14 /powerlevel9k.zsh-theme | |
parent | 6ef8e2f0cfe726f6df8a47615f50f0c50ac25693 (diff) |
partial rollback of the previous commit: ${(P):-X} is not the same as ${(P)${:-X}}
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 040e717f..5f8d1623 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -1608,7 +1608,7 @@ powerlevel9k_vcs_init() { local component state for component in REMOTE_URL COMMIT BRANCH TAG REMOTE_BRANCH STAGED UNSTAGED UNTRACKED \ OUTGOING_CHANGES INCOMING_CHANGES STASH ACTION; do - local color=${(P):-POWERLEVEL9K_VCS_${component}FORMAT_FOREGROUND} + local color=${(P)${:-POWERLEVEL9K_VCS_${component}FORMAT_FOREGROUND}} if [[ -n $color ]]; then for state in "${(@k)vcs_states}"; do local var=POWERLEVEL9K_VCS_${(U)state}_${component}FORMAT_FOREGROUND @@ -1661,7 +1661,7 @@ typeset -gAH _P9K_LAST_GIT_PROMPT typeset -gAH _P9K_GIT_SLOW function _p9k_vcs_style() { - local color=${(P):-POWERLEVEL9K_VCS_${1}_${2}FORMAT_FOREGROUND} + local color=${(P)${:-POWERLEVEL9K_VCS_${1}_${2}FORMAT_FOREGROUND}} if [[ -z $color ]]; then _P9K_RETVAL="" return |