mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-29 22:33:05 +03:00
Cache tide_prompt_color_separator_same_color
This commit is contained in:
parent
3e7b702ae0
commit
3f46f36c8a
@ -15,6 +15,9 @@ function _tide_cache_variables
|
||||
set -e _tide_private_mode
|
||||
end
|
||||
|
||||
# Same-color-separator color
|
||||
set -gx _tide_color_separator_same_color "$(set_color $tide_prompt_color_separator_same_color)"
|
||||
|
||||
# two line prompt
|
||||
if contains newline $tide_left_prompt_items
|
||||
set_color $tide_prompt_color_frame_and_connection -b normal | read -gx _tide_prompt_and_frame_color
|
||||
|
@ -5,8 +5,7 @@ function _tide_print_item -a item
|
||||
set_color $item_bg_color -b normal
|
||||
var=tide_"$_tide_side"_prompt_prefix echo -ns $$var
|
||||
else if test "$item_bg_color" = "$prev_bg_color"
|
||||
set_color $tide_prompt_color_separator_same_color
|
||||
var=tide_"$_tide_side"_prompt_separator_same_color echo -ns $$var
|
||||
var=tide_"$_tide_side"_prompt_separator_same_color echo -ns $_tide_color_separator_same_color$$var
|
||||
else if test "$_tide_side" = left
|
||||
set_color $prev_bg_color -b $item_bg_color
|
||||
echo -ns $tide_left_prompt_separator_diff_color
|
||||
|
Loading…
Reference in New Issue
Block a user