diff options
Diffstat (limited to 'home-config/fish/functions/_tide_cache_variables.fish')
-rw-r--r-- | home-config/fish/functions/_tide_cache_variables.fish | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/home-config/fish/functions/_tide_cache_variables.fish b/home-config/fish/functions/_tide_cache_variables.fish new file mode 100644 index 0000000..31e3850 --- /dev/null +++ b/home-config/fish/functions/_tide_cache_variables.fish | |||
@@ -0,0 +1,17 @@ | |||
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 | ||