Add update and auto-update for customization directory

This commit is contained in:
Mike 2015-08-21 04:50:00 -06:00 committed by Mike Scalora
commit 6b616fe2c7
2 changed files with 8 additions and 0 deletions

View file

@ -8,6 +8,10 @@ function uninstall_oh_my_zsh() {
function upgrade_oh_my_zsh() {
env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
if [ -x $ZSH/custom/tools/upgrade.sh ]
then
env ZSH=$ZSH /bin/sh $ZSH/custom/tools/upgrade.sh
fi
}
function take() {

View file

@ -14,6 +14,10 @@ function _upgrade_zsh() {
env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
# update the zsh file
_update_zsh_update
if [ -x $ZSH/custom/tools/upgrade.sh ]
then
env ZSH=$ZSH /bin/sh $ZSH/custom/tools/upgrade.sh
fi
}
epoch_target=$UPDATE_ZSH_DAYS