mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-27 13:18:02 +03:00
12 lines
384 B
Fish
12 lines
384 B
Fish
function _tide_git_prompt_set_vars --on-variable tide_git_prompt_bg_color
|
|
switch $tide_git_prompt_bg_color
|
|
case '' 'normal'
|
|
set color ''
|
|
case '*'
|
|
set color (set_color -b $tide_git_prompt_bg_color; or echo)
|
|
end
|
|
|
|
for var in (set --names | string match --regex "__fish_git_prompt_char_.*")
|
|
set -gx _$var $color$$var
|
|
end
|
|
end |