mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
move ~/.zsh-update file to $ZSH_CACHE_DIR
This commit is contained in:
parent
62b8a70a7c
commit
ae1042f515
1 changed files with 4 additions and 1 deletions
|
|
@ -7,10 +7,13 @@ function _current_epoch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _update_zsh_update() {
|
function _update_zsh_update() {
|
||||||
echo "LAST_EPOCH=$(_current_epoch)" >! ~/.zsh-update
|
echo "LAST_EPOCH=$(_current_epoch)" >! ${ZHS_CACHE_DIR}/.zsh-update
|
||||||
}
|
}
|
||||||
|
|
||||||
function _upgrade_zsh() {
|
function _upgrade_zsh() {
|
||||||
|
if [ -f ~/.zsh-update ] && [ ! -f ${ZSH_CACHE_DIR}/.zsh-update ]; then
|
||||||
|
mv ~/.zsh-update ${ZSH_CACHE_DIR}/.zsh-update
|
||||||
|
fi
|
||||||
env ZSH=$ZSH sh $ZSH/tools/upgrade.sh
|
env ZSH=$ZSH sh $ZSH/tools/upgrade.sh
|
||||||
# update the zsh file
|
# update the zsh file
|
||||||
_update_zsh_update
|
_update_zsh_update
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue