mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 12:20:07 +00:00
bug fix: support color names in vcs style; fixes #144
This commit is contained in:
parent
3fe113f91d
commit
37ab63fe69
1 changed files with 3 additions and 3 deletions
|
@ -375,11 +375,11 @@ _p9k_vcs_style() {
|
||||||
|
|
||||||
local var=POWERLEVEL9K_VCS_${1}_${2}FORMAT_FOREGROUND
|
local var=POWERLEVEL9K_VCS_${1}_${2}FORMAT_FOREGROUND
|
||||||
if (( $+parameters[$var] )); then
|
if (( $+parameters[$var] )); then
|
||||||
_p9k_ret=${(P)var}
|
_p9k_translate_color "${(P)var}"
|
||||||
else
|
else
|
||||||
var=POWERLEVEL9K_VCS_${2}FORMAT_FOREGROUND
|
var=POWERLEVEL9K_VCS_${2}FORMAT_FOREGROUND
|
||||||
if (( $+parameters[$var] )); then
|
if (( $+parameters[$var] )); then
|
||||||
_p9k_ret=${(P)var}
|
_p9k_translate_color "${(P)var}"
|
||||||
else
|
else
|
||||||
_p9k_color prompt_vcs_$1 FOREGROUND "$_p9k_color1"
|
_p9k_color prompt_vcs_$1 FOREGROUND "$_p9k_color1"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue