Simplify install

This commit is contained in:
Ilan Cosman 2020-11-03 10:06:52 -08:00
parent 583999af3b
commit 9b3ac2558b

View File

@ -33,16 +33,12 @@ function _tide_init_install --on-event _tide_init_install
source "$__fish_config_dir/functions/fish_prompt.fish" source "$__fish_config_dir/functions/fish_prompt.fish"
if status is-interactive if status is-interactive
while true switch (read --prompt-str="Configure tide prompt? [Y/n] " | string lower)
switch (read --prompt-str="Configure tide prompt? [Y/n] ") case y ye yes ''
case y Y yes Yes '' tide configure
tide configure case n no '*'
case n N no No printf '%s' \n 'Run ' (set_color $fish_color_command) 'tide ' \
printf '%s' \ (set_color $fish_color_param) 'configure ' (set_color normal) 'to customize your prompt.' \n
\n 'Run ' (set_color $fish_color_command) 'tide ' \
(set_color $fish_color_param) 'configure ' (set_color normal) 'to customize your prompt.' \n
end
break
end end
end end
end end