mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-17 02:00:07 +00:00
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.
This commit is contained in:
parent
424d41761d
commit
6f5827009f
1 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ left_prompt_segment() {
|
||||||
# Allow users to overwrite the color for the visual identifier only.
|
# Allow users to overwrite the color for the visual identifier only.
|
||||||
local visual_identifier_color_variable=POWERLEVEL9K_${(U)${segment_name}#prompt_}_VISUAL_IDENTIFIER_COLOR
|
local visual_identifier_color_variable=POWERLEVEL9K_${(U)${segment_name}#prompt_}_VISUAL_IDENTIFIER_COLOR
|
||||||
set_default $visual_identifier_color_variable "${foregroundColor}"
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ right_prompt_segment() {
|
||||||
# Allow users to overwrite the color for the visual identifier only.
|
# Allow users to overwrite the color for the visual identifier only.
|
||||||
local visual_identifier_color_variable=POWERLEVEL9K_${(U)${segment_name}#prompt_}_VISUAL_IDENTIFIER_COLOR
|
local visual_identifier_color_variable=POWERLEVEL9K_${(U)${segment_name}#prompt_}_VISUAL_IDENTIFIER_COLOR
|
||||||
set_default $visual_identifier_color_variable "${foregroundColor}"
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue