#!/usr/bin/env sh vim_autoload_dir="$HOME/.config/vim/autoload" if [ ! -f "$vim_autoload_dir/plug.vim" ] then mkdir -p "$vim_autoload_dir" cd "$vim_autoload_dir" || exit curl -o "plug.vim" "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" [ -x "$(command -v vim)" ] && yes | vim +'PlugInstall --sync' +qa --not-a-term fi nvim_dir="$HOME/.config/nvim" if [ ! -d "$nvim_dir" ] then git clone https://github.com/AstroNvim/AstroNvim "$nvim_dir" [ -x "$(command -v nvim)" ] && nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync' fi if [ ! -x "$(command -v starship)" ] then mkdir -p "$HOME/.local/bin" curl -sS "https://starship.rs/install.sh" | BIN_DIR="$HOME/.local/bin" FORCE=1 sh fi