diff --git a/run_onchange_after_install_main_deps.sh.tmpl b/run_onchange_after_install_main_deps.sh.tmpl index 6ebf001..6e55619 100644 --- a/run_onchange_after_install_main_deps.sh.tmpl +++ b/run_onchange_after_install_main_deps.sh.tmpl @@ -202,15 +202,18 @@ new_line "Install fisher plugin manager for fish" ## Install fisher plugin manager for fish, so that we may update in after plugin list sync by chezmoi if ! fish -c fisher &>/dev/null then - fish -c "curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher" 2>&1|pad + fish -c "curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher update" 2>&1|pad fi - -new_line "Installing and configuring tide prompt for fish" -fish -c "fisher install ilancosman/tide@v6" 2>&1|pad +new_line "Configuring tide prompt for fish" fish -c "tide configure --auto --style=Classic --prompt_colors='True color' --classic_prompt_color=Dark --show_time='24-hour format' --classic_prompt_separators=Slanted --powerline_prompt_heads=Slanted --powerline_prompt_tails=Round --powerline_prompt_style='Two lines, frame' --prompt_connection=Disconnected --powerline_right_prompt_frame=No --prompt_connection_andor_frame_color=Darkest --prompt_spacing=Sparse --icons='Few icons' --transient=No" >/dev/null fish -c "set -Ux tide_context_always_display true" +new_line "Executing neovim :Lazy sync..." + +timeout 30s nvim --headless "+Lazy! sync" +qa 2>&1|pad +timeout 10s nvim --headless ":MasonUpdate" +qa 2>&1|pad + new_line "Change default shell to fish for user $USER" ## Change default shell to fish @@ -219,16 +222,6 @@ then sudo chsh -s $(command -v fish) $USER fi -new_line "Installing fisher plugins" -fish -c "fisher update" 2>&1|pad - - -new_line "Executing neovim :Lazy sync..." - -timeout 30s nvim --headless "+Lazy! sync" +qa || true 2>&1|pad -timeout 10s nvim --headless ":MasonUpdate" +qa || true 2>&1|pad - - tput csr 0 $LINES tput cup $LINES 0 echo