1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-18 05:40:07 +00:00

$0 suffixes for color customization

This commit is contained in:
Christian Schulze 2015-09-19 13:48:23 +10:00
parent c08a209e20
commit 665ed59e6a

View file

@ -579,9 +579,9 @@ prompt_context() {
prompt_vi_mode() { prompt_vi_mode() {
local mode="${${KEYMAP/vicmd/NORMAL}/(main|viins)/INSERT}" local mode="${${KEYMAP/vicmd/NORMAL}/(main|viins)/INSERT}"
if [[ "$mode" == "NORMAL" ]]; then if [[ "$mode" == "NORMAL" ]]; then
$1_prompt_segment "$0" "$DEFAULT_COLOR" "default" "$mode" $1_prompt_segment "$0_NORMAL" "$DEFAULT_COLOR" "default" "$mode"
else else
$1_prompt_segment "$0" "$DEFAULT_COLOR" "blue" "$mode" $1_prompt_segment "$0_INSERT" "$DEFAULT_COLOR" "blue" "$mode"
fi fi
} }