summaryrefslogtreecommitdiff
path: root/oh-my-zsh.sh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-06-17 11:23:52 +0200
committerGitHub <noreply@github.com>2020-06-17 11:23:52 +0200
commit3f6e87df15104484219c04828b2eddd6d09ee065 (patch)
tree3484611269ffd095cda6ad2ca8f3aff67a392f9a /oh-my-zsh.sh
parentdb94f60d342ba2be7dbe3bfd86f4edb335c2a6a7 (diff)
downloadzsh-3f6e87df15104484219c04828b2eddd6d09ee065.tar.gz
zsh-3f6e87df15104484219c04828b2eddd6d09ee065.tar.bz2
zsh-3f6e87df15104484219c04828b2eddd6d09ee065.zip
init: run update check in the same zsh process (#9019)
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r--oh-my-zsh.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index 4b4191c01..741bad510 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -5,9 +5,7 @@ if [[ -z "$ZSH_CACHE_DIR" ]]; then
fi
# Check for updates on initial load...
-if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
- env ZSH=$ZSH ZSH_CACHE_DIR=$ZSH_CACHE_DIR DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $ZSH/tools/check_for_upgrade.sh
-fi
+source $ZSH/tools/check_for_upgrade.sh
# Initializes Oh My Zsh