From 2cf34dfd148a757cdee594a12d0dd039c4464e4d Mon Sep 17 00:00:00 2001 From: Ben Iofel Date: Sun, 15 Jan 2017 15:41:58 -0500 Subject: [PATCH] use ZSH_CUSTOM to update custom plugins --- lib/functions.zsh | 2 +- tools/upgrade.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/functions.zsh b/lib/functions.zsh index f3065378..628919ae 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -7,7 +7,7 @@ function uninstall_oh_my_zsh() { } function upgrade_oh_my_zsh() { - env ZSH=$ZSH sh $ZSH/tools/upgrade.sh + env ZSH=$ZSH ZSH_CUSTOM=$ZSH_CUSTOM sh $ZSH/tools/upgrade.sh } function take() { diff --git a/tools/upgrade.sh b/tools/upgrade.sh index b67247bc..a2a15f32 100644 --- a/tools/upgrade.sh +++ b/tools/upgrade.sh @@ -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