tide/functions/_tide_git_prompt_set_vars.fish

12 lines
383 B
Fish
Raw Normal View History

2020-07-21 00:11:59 +03:00
function _tide_git_prompt_set_vars --on-variable tide_git_prompt_bg_color
switch $tide_git_prompt_bg_color
case '' 'normal'
set color ''
case '*'
2020-12-26 19:42:21 +03:00
set color (set_color -b $tide_git_prompt_bg_color || echo)
2020-06-25 05:47:15 +03:00
end
2020-07-21 00:11:59 +03:00
for var in (set --names | string match --regex "__fish_git_prompt_char_.*")
2020-11-24 01:56:52 +03:00
set -gx _$var $color$$var
2020-06-25 05:47:15 +03:00
end
end