autoupdate plugins

This commit is contained in:
Ben Iofel 2016-11-14 09:26:17 -05:00
parent b908feebcf
commit 69be6af0f5
No known key found for this signature in database
GPG Key ID: 844EF21A4E1789FE

View File

@ -37,3 +37,11 @@ then
else
printf "${RED}%s${NORMAL}\n" 'There was an error updating. Try again later?'
fi
printf "${BLUE}%s${NORMAL}\n" "Updating Custom Plugins"
cd "$ZSH/custom/plugins"
for dir in ./*; do
if [[ -d $dir && -d $dir/.git ]]; then
git -C $dir pull --rebase --stat origin master
fi
done