aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2018-08-09 00:18:36 +0300
committerDominik Ritter <dritter03@googlemail.com>2018-08-09 00:18:36 +0300
commit6f5827009fa3a39cc04ab205da2da44965d9a00c (patch)
tree50c09c504a6c1c8b0d756e51047b0e5477e8d5eb
parent424d41761d819e127309af0c31837b91f2bb24a1 (diff)
Fix colors for visual identifiers
Make the visual identifier color use numerical color codes as well. This way colors like "purple3" work as visual identifier color.
-rwxr-xr-xpowerlevel9k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 6fef6a26..a9b2d1ff 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -172,7 +172,7 @@ left_prompt_segment() {
# Allow users to overwrite the color for the visual identifier only.
local visual_identifier_color_variable=POWERLEVEL9K_${(U)${segment_name}#prompt_}_VISUAL_IDENTIFIER_COLOR
set_default $visual_identifier_color_variable "${foregroundColor}"
- visual_identifier="%F{${(P)visual_identifier_color_variable}%}$visual_identifier%f"
+ visual_identifier="$(foregroundColor ${(P)visual_identifier_color_variable})${visual_identifier}%f"
fi
fi
@@ -274,7 +274,7 @@ right_prompt_segment() {
# Allow users to overwrite the color for the visual identifier only.
local visual_identifier_color_variable=POWERLEVEL9K_${(U)${segment_name}#prompt_}_VISUAL_IDENTIFIER_COLOR
set_default $visual_identifier_color_variable "${foregroundColor}"
- visual_identifier="%F{${(P)visual_identifier_color_variable}%}$visual_identifier%f"
+ visual_identifier="$(foregroundColor ${(P)visual_identifier_color_variable})${visual_identifier}%f"
fi
fi