aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-12-15 04:20:11 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-12-15 04:20:11 +0300
commit1d0f47fb976369ce56c294e278667aad5aa20335 (patch)
tree532157d0b8f1fb0c37b595e530c44c369ada788c /powerlevel9k.zsh-theme
parent78d22ba309171889e79fa486b9f7aa882b4d8001 (diff)
Bugfix: the default should be a pure color, not a full ZSH color
modifier.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 25a9f0e0..a90d18e7 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -161,7 +161,7 @@ left_prompt_segment() {
visual_identifier="$(print_icon $5)"
# Allow users to overwrite the color for the visual identifier only.
local visual_identifier_color_variable=POWERLEVEL9K_${(U)1#prompt_}_VISUAL_IDENTIFIER_COLOR
- set_default $visual_identifier_color_variable $fg
+ set_default $visual_identifier_color_variable $3
visual_identifier="%F{${(P)visual_identifier_color_variable}%}$visual_identifier%f"
# Add an whitespace if we print more than just the visual identifier
[[ -n $4 ]] && visual_identifier="$visual_identifier "
@@ -226,7 +226,7 @@ right_prompt_segment() {
visual_identifier="$(print_icon $5)"
# Allow users to overwrite the color for the visual identifier only.
local visual_identifier_color_variable=POWERLEVEL9K_${(U)1#prompt_}_VISUAL_IDENTIFIER_COLOR
- set_default $visual_identifier_color_variable $fg
+ set_default $visual_identifier_color_variable $3
visual_identifier="%F{${(P)visual_identifier_color_variable}%}$visual_identifier%f"
# Add an whitespace if we print more than just the visual identifier
[[ -n $4 ]] && visual_identifier=" $visual_identifier"