aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2018-08-10 00:20:48 +0300
committerDominik Ritter <dritter03@googlemail.com>2018-08-10 00:20:48 +0300
commit52ce9930bbb2971c7d3a20330928d3206f03c5ae (patch)
tree9639be0797a1253a7163740ae13b404436e26c89
parentef5f9bb1b494bcb1ceb81f7c833750d85701ca4a (diff)
Fix foreground colors in right prompt segments
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 781813e7..74caeb2d 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -231,7 +231,7 @@ right_prompt_segment() {
# Overwrite given foreground-color by user defined variable for this segment.
local FOREGROUND_USER_VARIABLE=POWERLEVEL9K_${(U)${segment_name}#prompt_}_FOREGROUND
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
backgroundColor="$(getColorCode ${backgroundColor})"