summaryrefslogtreecommitdiff
path: root/home-config/fish/functions/_tide_cache_variables.fish
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2024-04-05 11:57:45 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2024-04-05 11:57:45 -0400
commitb88d77fb2d0d5028a6f5670695dee6bec129501f (patch)
tree2536b0461d297e647cf07157641c9b1223339adf /home-config/fish/functions/_tide_cache_variables.fish
parent776a7ca55d2d2c3f396de91db1c6c3c5065012cd (diff)
ahhh sloppy fish, still needs fixing, esp with the vars
Diffstat (limited to 'home-config/fish/functions/_tide_cache_variables.fish')
-rw-r--r--home-config/fish/functions/_tide_cache_variables.fish17
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 @@
1function _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
17end