2021-03-31 09:14:51 +00:00
|
|
|
#/usr/bin/env bash
|
2021-03-31 10:47:59 +00:00
|
|
|
#
|
|
|
|
# Update vim plugins in $HOME/.vim/pack/git-plugins/opt
|
2021-03-31 09:14:51 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
pluginhome=$HOME/.vim/pack/git-plugins
|
|
|
|
cd $pluginhome
|
|
|
|
|
|
|
|
find . -mindepth 2 -maxdepth 2 -type d -print0 | while read -d $'\0' pluginpath
|
|
|
|
do
|
|
|
|
cd $pluginpath
|
|
|
|
basename=$(basename $pluginpath)
|
|
|
|
printf "In $basename.. "
|
|
|
|
git pull --rebase
|
|
|
|
cd $pluginhome
|
|
|
|
done
|