tide/tide_theme/configure/choices/all/finish.fish

31 lines
658 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?'
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
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-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
set -e $fakeVar
2020-06-16 00:25:51 +03:00
end
2020-06-16 00:25:51 +03:00
cd .
2020-05-19 02:17:50 +03:00
end
_quit
end