dotfiles/update.sh
2022-02-14 21:37:02 +01:00

11 lines
276 B
Bash
Executable file

#!/bin/bash
GIT_DIRS=(. ~/.vim/bundle ~/.config/nvim)
for dir in ${GIT_DIRS[@]} ; do
git -C "$dir" git stash
git -C "$dir" pull
git -C "$dir" git stash pop
done
nvim -c "autocmd User PackerComplete quitall" -c "PackerSync"
vim -c ":PluginUpdate" -c ":q" -c ":q"