mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Add update and auto-update for customization directory
This commit is contained in:
parent
192de6bcff
commit
6b616fe2c7
2 changed files with 8 additions and 0 deletions
|
|
@ -8,6 +8,10 @@ function uninstall_oh_my_zsh() {
|
||||||
|
|
||||||
function upgrade_oh_my_zsh() {
|
function upgrade_oh_my_zsh() {
|
||||||
env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
|
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() {
|
function take() {
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,10 @@ function _upgrade_zsh() {
|
||||||
env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
|
env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
|
||||||
# update the zsh file
|
# update the zsh file
|
||||||
_update_zsh_update
|
_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
|
epoch_target=$UPDATE_ZSH_DAYS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue