2017-11-03 07:09:33 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-02-15 07:34:33 +00:00
|
|
|
GIT_DIRS=(. ~/.vim/bundle ~/.config/nvim ~/.tmux/plugins/tpm)
|
2017-11-03 07:09:33 +00:00
|
|
|
for dir in ${GIT_DIRS[@]} ; do
|
2022-02-15 07:34:33 +00:00
|
|
|
if [ -d "$dir" ] ; then
|
2022-02-14 20:37:02 +00:00
|
|
|
git -C "$dir" git stash
|
|
|
|
git -C "$dir" pull
|
|
|
|
git -C "$dir" git stash pop
|
2022-02-15 07:34:33 +00:00
|
|
|
else
|
|
|
|
echo "Skipping: $dir"
|
|
|
|
fi
|
2017-11-03 07:09:33 +00:00
|
|
|
done
|
|
|
|
|
2022-02-15 07:34:33 +00:00
|
|
|
if type nvim &>/dev/null ; then
|
|
|
|
nvim -c "autocmd User PackerComplete quitall" -c "PackerSync"
|
|
|
|
fi
|
|
|
|
|
2017-11-03 07:09:33 +00:00
|
|
|
vim -c ":PluginUpdate" -c ":q" -c ":q"
|