2020-05-19 02:17:50 +03:00
|
|
|
function finish
|
2020-05-19 06:03:25 +03:00
|
|
|
_title 'Overwrite tide config?'
|
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
|
|
|
|
|
2020-05-19 06:03:25 +03:00
|
|
|
set -l vars tide_{ \
|
2020-05-19 02:17:50 +03:00
|
|
|
newline, \
|
|
|
|
left_prompt_items, \
|
|
|
|
prompt_connection_color, prompt_connection_icon, \
|
2020-05-19 23:42:02 +03:00
|
|
|
time_format \
|
2020-05-19 02:17:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
for var in $vars
|
|
|
|
set -l fakeVar "fake_$var"
|
|
|
|
set -U $var $$fakeVar
|
|
|
|
end
|
|
|
|
case n
|
|
|
|
end
|
|
|
|
|
|
|
|
_quit
|
|
|
|
end
|