2023-10-08 22:26:07 -05:00
|
|
|
function finish
|
|
|
|
set_color red
|
2023-11-20 01:07:05 -06:00
|
|
|
_tide_title 'Overwrite tide config?'
|
2023-10-08 22:26:07 -05:00
|
|
|
set_color normal
|
|
|
|
|
2023-11-20 01:07:05 -06:00
|
|
|
_tide_option y Yes
|
2023-10-08 22:26:07 -05:00
|
|
|
echo
|
|
|
|
|
2023-11-20 01:07:05 -06:00
|
|
|
_tide_menu
|
2023-10-08 22:26:07 -05:00
|
|
|
switch $_tide_selected_option
|
2023-11-20 01:07:05 -06:00
|
|
|
case y
|
2023-10-08 22:26:07 -05:00
|
|
|
_tide_finish
|
|
|
|
command -q clear && clear
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function _tide_finish
|
2023-11-20 01:07:05 -06:00
|
|
|
set -e _tide_selected_option # Skip through all the _next_choices
|
2023-10-08 22:26:07 -05:00
|
|
|
|
|
|
|
# Deal with prompt char/vi mode
|
|
|
|
contains character $fake_tide_left_prompt_items || set -p fake_tide_left_prompt_items vi_mode
|
|
|
|
|
|
|
|
# Set the real variables
|
|
|
|
for fakeVar in (set --names | string match -r "^fake_tide.*")
|
|
|
|
set -U (string replace 'fake_' '' $fakeVar) $$fakeVar
|
|
|
|
end
|
|
|
|
|
|
|
|
# Make sure old prompt won't display
|
|
|
|
set -e $_tide_prompt_var 2>/dev/null
|
|
|
|
|
|
|
|
# Re-initialize the prompt
|
2023-11-20 01:07:05 -06:00
|
|
|
source (functions --details fish_prompt)
|
2023-10-08 22:26:07 -05:00
|
|
|
end
|