add event sink for custom folders

This commit is contained in:
Mike Scalora 2016-05-14 07:03:31 -06:00
commit f79c40c311
3 changed files with 8 additions and 2 deletions

View file

@ -7,7 +7,7 @@ function uninstall_oh_my_zsh() {
}
function upgrade_oh_my_zsh() {
env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
env ZSH=$ZSH ZSH_CUSTOM=$ZSH_CUSTOM /bin/sh $ZSH/tools/upgrade.sh
}
function take() {

View file

@ -11,7 +11,7 @@ function _update_zsh_update() {
}
function _upgrade_zsh() {
env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
env ZSH=$ZSH ZSH_CUSTOM=$ZSH_CUSTOM /bin/sh $ZSH/tools/upgrade.sh
# update the zsh file
_update_zsh_update
}

View file

@ -34,6 +34,12 @@ then
printf "${BLUE}%s\n" "Hooray! Oh My Zsh has been updated and/or is at the current version."
printf "${BLUE}${BOLD}%s${NORMAL}\n" "To keep up on the latest news and updates, follow us on twitter: https://twitter.com/ohmyzsh"
printf "${BLUE}${BOLD}%s${NORMAL}\n" "Get your Oh My Zsh swag at: http://shop.planetargon.com/"
if [ -f $ZSH_CUSTOM/tools/custom_event.sh ]; then
# Notify user's custom code of upgrades
env ZSH=$ZSH ZSH_CUSTOM=$ZSH_CUSTOM /bin/sh $ZSH_CUSTOM/tools/custom_event.sh upgrade
fi
else
printf "${RED}%s${NORMAL}\n" 'There was an error updating. Try again later?'
fi