use ZSH_CUSTOM to update custom plugins

This commit is contained in:
Ben Iofel 2017-01-15 15:41:58 -05:00
commit 2cf34dfd14
No known key found for this signature in database
GPG key ID: 844EF21A4E1789FE
2 changed files with 2 additions and 3 deletions

View file

@ -39,8 +39,7 @@ else
fi
printf "${BLUE}%s${NORMAL}\n" "Updating Custom Plugins"
cd "$ZSH/custom/plugins"
for dir in ./*; do
for dir in $ZSH_CUSTOM/plugins/*; do
if [[ -d $dir && -d $dir/.git ]]; then
git -C $dir pull --rebase --stat origin master
fi