dotfiles/update.sh

12 lines
276 B
Bash
Raw Normal View History

2017-11-03 07:09:33 +00:00
#!/bin/bash
2022-02-14 20:37:02 +00:00
GIT_DIRS=(. ~/.vim/bundle ~/.config/nvim)
2017-11-03 07:09:33 +00:00
for dir in ${GIT_DIRS[@]} ; do
2022-02-14 20:37:02 +00:00
git -C "$dir" git stash
git -C "$dir" pull
git -C "$dir" git stash pop
2017-11-03 07:09:33 +00:00
done
2022-02-14 20:37:02 +00:00
nvim -c "autocmd User PackerComplete quitall" -c "PackerSync"
2017-11-03 07:09:33 +00:00
vim -c ":PluginUpdate" -c ":q" -c ":q"