home-config/fish/functions/_tide_cache_variables.fish
01132663060e0ace2badde34ba25a216b22db15d
· 609 B · 17 lines
raw
| 1 | function _tide_cache_variables |
| 2 | # Same-color-separator color |
| 3 | set_color $tide_prompt_color_separator_same_color | read -gx _tide_color_separator_same_color |
| 4 | |
| 5 | # git |
| 6 | contains git $_tide_left_items $_tide_right_items && set_color $tide_git_color_branch | read -gx _tide_location_color |
| 7 | |
| 8 | # private_mode |
| 9 | if contains private_mode $_tide_left_items $_tide_right_items && test -n "$fish_private_mode" |
| 10 | set -gx _tide_private_mode |
| 11 | else |
| 12 | set -e _tide_private_mode |
| 13 | end |
| 14 | |
| 15 | # item padding |
| 16 | test "$tide_prompt_pad_items" = true && set -gx _tide_pad ' ' || set -e _tide_pad |
| 17 | end |