From 69be6af0f545c9fb8f6af2b8e2ac8145ce03908a Mon Sep 17 00:00:00 2001 From: Ben Iofel Date: Mon, 14 Nov 2016 09:26:17 -0500 Subject: [PATCH] autoupdate plugins --- tools/upgrade.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/upgrade.sh b/tools/upgrade.sh index d5e7e8ba..b67247bc 100644 --- a/tools/upgrade.sh +++ b/tools/upgrade.sh @@ -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