Now updated brace_color...
This commit is contained in:
@ -7,7 +7,7 @@ set date_color="ansi:5"
|
|||||||
set time_color="ansi:13"
|
set time_color="ansi:13"
|
||||||
set text_color="reset"
|
set text_color="reset"
|
||||||
set oldp_color="${dim}"
|
set oldp_color="${dim}"
|
||||||
set brace_color="${bright_yellow}"
|
set brace_color="ansi:11"
|
||||||
set host_color="ansi:12"
|
set host_color="ansi:12"
|
||||||
set name_color="${bright_cyan}"
|
set name_color="${bright_cyan}"
|
||||||
set at_color="${dim_cyan}"
|
set at_color="${dim_cyan}"
|
||||||
@ -21,7 +21,6 @@ set color_start="%{"
|
|||||||
set color_end="%}"
|
set color_end="%}"
|
||||||
|
|
||||||
set oldp_color_seq="${color_start}${oldp_color}${color_end}"
|
set oldp_color_seq="${color_start}${oldp_color}${color_end}"
|
||||||
set brace_color_seq="${color_start}${brace_color}${color_end}"
|
|
||||||
set name_color_seq="${color_start}${name_color}${color_end}"
|
set name_color_seq="${color_start}${name_color}${color_end}"
|
||||||
set at_color_seq="${color_start}${at_color}${color_end}"
|
set at_color_seq="${color_start}${at_color}${color_end}"
|
||||||
set line_color_seq="${color_start}${line_color}${color_end}"
|
set line_color_seq="${color_start}${line_color}${color_end}"
|
||||||
|
|||||||
@ -45,6 +45,15 @@ if( "${curr_text_color}" != "${text_color}" ) then
|
|||||||
set text_color_seq="[`__build_sgr_code no-csi reset ${curr_text_color}`m"
|
set text_color_seq="[`__build_sgr_code no-csi reset ${curr_text_color}`m"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if( ! $?curr_brace_color ) then
|
||||||
|
set curr_brace_color=impossible
|
||||||
|
endif
|
||||||
|
if( "${curr_brace_color}" != "${brace_color}" ) then
|
||||||
|
set curr_brace_color="${brace_color}"
|
||||||
|
set brace_color_seq="%{[`__build_sgr_code no-csi reset ${curr_brace_color}`m%}"
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
if( ${prompt_hcolor} != 0 ) then
|
if( ${prompt_hcolor} != 0 ) then
|
||||||
set last_color = ${reference_colors[${prompt_hcolor}]}
|
set last_color = ${reference_colors[${prompt_hcolor}]}
|
||||||
endif
|
endif
|
||||||
@ -236,7 +245,7 @@ if( ! $?CSHENV_DISABLE_PROMPT_PATH ) then
|
|||||||
set path_prompt_view="%{${path_color_seq}%}${path_prompt}%{${sgr_reset}%}"
|
set path_prompt_view="%{${path_color_seq}%}${path_prompt}%{${sgr_reset}%}"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
set prompt_cool="%{\n%}${align_prefix}${battery_prefix}${battery_prompt}${date_prompt_view}%{ %}${time_prompt_view}${align_suffix}${brace_color_seq}\[${prompt_reference_view}${line_prompt_view}${depth_prompt_view}${line_spacer_view}${user_prompt_view}${at_view}${host_prompt_view}${git_prompt_view}${path_prompt_view}${brace_color_seq}\]${end_prompt}%{${text_color_seq}%}"
|
set prompt_cool="%{\n%}${align_prefix}${battery_prefix}${battery_prompt}${date_prompt_view}%{ %}${time_prompt_view}${align_suffix}${brace_color_seq}\[%{${sgr_reset}%}${prompt_reference_view}${line_prompt_view}${depth_prompt_view}${line_spacer_view}${user_prompt_view}${at_view}${host_prompt_view}${git_prompt_view}${path_prompt_view}${brace_color_seq}\]%{${sgr_reset}%}${end_prompt}%{${text_color_seq}%}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user