aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-08-01 16:09:39 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-08-01 16:09:39 +0300
commit37ab63fe694043fdd339c88c89418ec9174ba8f2 (patch)
tree2a89e9024b9ce30a62161b468e1ffd2c2c906a8b /internal
parent3fe113f91d0f819ad33c90608c3f293a1559324a (diff)
bug fix: support color names in vcs style; fixes #144
Diffstat (limited to 'internal')
-rwxr-xr-xinternal/p10k.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index d37dfb2c..5fb6f6a4 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -375,16 +375,16 @@ _p9k_vcs_style() {
local var=POWERLEVEL9K_VCS_${1}_${2}FORMAT_FOREGROUND
if (( $+parameters[$var] )); then
- _p9k_ret=${(P)var}
+ _p9k_translate_color "${(P)var}"
else
var=POWERLEVEL9K_VCS_${2}FORMAT_FOREGROUND
if (( $+parameters[$var] )); then
- _p9k_ret=${(P)var}
+ _p9k_translate_color "${(P)var}"
else
_p9k_color prompt_vcs_$1 FOREGROUND "$_p9k_color1"
fi
fi
-
+
_p9k_foreground $_p9k_ret
_p9k_ret=$style$_p9k_ret
_p9k_cache[$key]=${_p9k_ret}.