2021-08-22 01:05:08 +03:00
|
|
|
function _tide_cache_variables
|
2021-11-04 08:07:15 +03:00
|
|
|
# Same-color-separator color
|
2022-01-05 22:25:32 +03:00
|
|
|
set_color $tide_prompt_color_separator_same_color | read -gx _tide_color_separator_same_color
|
2021-08-22 01:05:08 +03:00
|
|
|
|
|
|
|
# git
|
2022-01-05 22:25:32 +03:00
|
|
|
contains git $_tide_left_items $_tide_right_items && set_color $tide_git_color_branch | read -gx _tide_location_color
|
2021-08-22 01:05:08 +03:00
|
|
|
|
2021-10-03 22:05:43 +03:00
|
|
|
# private_mode
|
2021-11-25 02:45:48 +03:00
|
|
|
if contains private_mode $_tide_left_items $_tide_right_items && test -n "$fish_private_mode"
|
2021-10-03 22:05:43 +03:00
|
|
|
set -gx _tide_private_mode
|
|
|
|
else
|
|
|
|
set -e _tide_private_mode
|
|
|
|
end
|
|
|
|
|
2021-09-22 23:35:33 +03:00
|
|
|
# item padding
|
2021-10-26 20:50:54 +03:00
|
|
|
test "$tide_prompt_pad_items" = true && set -gx _tide_pad ' ' || set -e _tide_pad
|
2021-08-22 01:05:08 +03:00
|
|
|
end
|