tide/tide_theme/configure/choices/finish.fish

44 lines
983 B
Fish
Raw Normal View History

2020-05-19 02:17:50 +03:00
function finish
set_color red
_title 'Overwrite tide config and fish_prompt?'
set_color normal
2020-05-19 02:17:50 +03:00
_option y 'Yes'
printf '%b' '\n\n'
_option n 'No'
printf '%b' '\n\n'
switch (_menu 'Choice' y/n)
case y
2020-05-23 19:06:12 +03:00
_set_tide_defaults
2020-05-19 06:28:17 +03:00
if test -n "$fake_tide_time_format"
2020-05-19 06:03:25 +03:00
set -a tide_right_prompt_items 'time'
2020-05-19 02:17:50 +03:00
end
for var in $_tide_var_list
2020-05-19 02:17:50 +03:00
set -l fakeVar "fake_$var"
if set -q $fakeVar
set -U $var $$fakeVar
end
2020-05-19 02:17:50 +03:00
end
# set -l vars tide_{ \
# newline, \
# left_prompt_items, \
# prompt_connection_color, prompt_connection_icon, \
# time_format \
# }
# for var in $vars
# set -l fakeVar "fake_$var"
# set -U $var $$fakeVar
# end
2020-05-19 02:17:50 +03:00
case n
end
_quit
end