experiment to save fisher plugins

This commit is contained in:
Anton Volnuhin 2024-05-21 02:09:22 +03:00
parent 9f816cda8b
commit b087969d49

View File

@ -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