use ZSH_CUSTOM to update custom plugins
This commit is contained in:
parent
69be6af0f5
commit
2cf34dfd14
@ -7,7 +7,7 @@ function uninstall_oh_my_zsh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function upgrade_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() {
|
function take() {
|
||||||
|
@ -39,8 +39,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
printf "${BLUE}%s${NORMAL}\n" "Updating Custom Plugins"
|
printf "${BLUE}%s${NORMAL}\n" "Updating Custom Plugins"
|
||||||
cd "$ZSH/custom/plugins"
|
for dir in $ZSH_CUSTOM/plugins/*; do
|
||||||
for dir in ./*; do
|
|
||||||
if [[ -d $dir && -d $dir/.git ]]; then
|
if [[ -d $dir && -d $dir/.git ]]; then
|
||||||
git -C $dir pull --rebase --stat origin master
|
git -C $dir pull --rebase --stat origin master
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user