mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
Fix foreground colors in right prompt segments
This commit is contained in:
parent
ef5f9bb1b4
commit
52ce9930bb
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ right_prompt_segment() {
|
||||||
# Overwrite given foreground-color by user defined variable for this segment.
|
# Overwrite given foreground-color by user defined variable for this segment.
|
||||||
local FOREGROUND_USER_VARIABLE=POWERLEVEL9K_${(U)${segment_name}#prompt_}_FOREGROUND
|
local FOREGROUND_USER_VARIABLE=POWERLEVEL9K_${(U)${segment_name}#prompt_}_FOREGROUND
|
||||||
local FG_COLOR_MODIFIER=${(P)FOREGROUND_USER_VARIABLE}
|
local FG_COLOR_MODIFIER=${(P)FOREGROUND_USER_VARIABLE}
|
||||||
[[ -n $FG_COLOR_MODIFIER ]] && 4="$FG_COLOR_MODIFIER"
|
[[ -n $FG_COLOR_MODIFIER ]] && foregroundColor="$FG_COLOR_MODIFIER"
|
||||||
|
|
||||||
# Get color codes here to save some calls later on
|
# Get color codes here to save some calls later on
|
||||||
backgroundColor="$(getColorCode ${backgroundColor})"
|
backgroundColor="$(getColorCode ${backgroundColor})"
|
||||||
|
|
Loading…
Reference in a new issue