Fix bug when configuring right after install

This commit is contained in:
Ilan Cosman 2020-12-28 09:46:47 -08:00
parent 5e2d749cb6
commit a3666e4d89

View File

@ -11,16 +11,11 @@ function _tide_init_install --on-event _tide_init_install
set -U _tide_var_list
source "$_tide_dir/configure/choices/all/style.fish"
source $__fish_config_dir/functions/_tide_sub_configure.fish
_load_config 'lean'
source "$_tide_dir/configure/choices/all/finish.fish"
_tide_finish
source "$__fish_config_dir/functions/fish_prompt.fish"
if status is-interactive
switch (read --prompt-str="Configure tide prompt? [Y/n] " | string lower)
status is-interactive && switch (read --prompt-str="Configure tide prompt? [Y/n] " | string lower)
case y ye yes ''
tide configure
case '*'
@ -28,7 +23,6 @@ function _tide_init_install --on-event _tide_init_install
(set_color $fish_color_param) 'configure ' (set_color normal) 'to customize your prompt.' \n
end
end
end
function _tide_init_uninstall --on-event _tide_init_uninstall
for var in $_tide_var_immutable_list $_tide_var_list