2021-04-03 08:51:47 +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-04-02 04:28:00 +00:00
|
|
|
|
2021-03-31 09:14:51 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
pluginhome=$HOME/.vim/pack/git-plugins
|
2023-10-07 08:43:32 +00:00
|
|
|
cd "$pluginhome"
|
2021-03-31 09:14:51 +00:00
|
|
|
|
2023-10-07 08:43:32 +00:00
|
|
|
find . -mindepth 2 -maxdepth 2 -type d -print0 | while read -rd $'\0' pluginpath
|
2021-03-31 09:14:51 +00:00
|
|
|
do
|
2023-10-07 08:43:32 +00:00
|
|
|
cd "$pluginpath"
|
|
|
|
basename=$(basename "$pluginpath")
|
|
|
|
printf "In %s.. " "$basename"
|
2021-03-31 09:14:51 +00:00
|
|
|
git pull --rebase
|
2023-10-07 08:43:32 +00:00
|
|
|
cd "$pluginhome"
|
2021-03-31 09:14:51 +00:00
|
|
|
done
|