2020-05-19 02:17:50 +03:00
|
|
|
function finish
|
2020-05-25 01:59:37 +03:00
|
|
|
set_color red
|
|
|
|
_title 'Overwrite tide config and fish_prompt?'
|
2020-06-18 20:36:59 +03:00
|
|
|
# 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-06-14 05:08:08 +03:00
|
|
|
for var in $_tide_var_list
|
2020-06-16 00:25:51 +03:00
|
|
|
set -e $var
|
2020-05-19 02:17:50 +03:00
|
|
|
end
|
2020-06-16 00:25:51 +03:00
|
|
|
set _tide_var_list
|
2020-06-14 05:08:08 +03:00
|
|
|
|
2020-06-16 00:25:51 +03:00
|
|
|
for fakeVar in $fake_tide_var_list
|
|
|
|
set -l normalVar (string replace 'fake_' '' $fakeVar)
|
|
|
|
set -U $normalVar $$fakeVar
|
|
|
|
set -a _tide_var_list $normalVar
|
2020-06-16 02:23:45 +03:00
|
|
|
set -e $fakeVar
|
2020-06-16 00:25:51 +03:00
|
|
|
end
|
2020-06-14 05:08:08 +03:00
|
|
|
|
2020-06-16 00:25:51 +03:00
|
|
|
cd .
|
2020-05-19 02:17:50 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
_quit
|
|
|
|
end
|