From 3f6e87df15104484219c04828b2eddd6d09ee065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Wed, 17 Jun 2020 11:23:52 +0200 Subject: [PATCH] init: run update check in the same zsh process (#9019) --- oh-my-zsh.sh | 4 +--- 1 file changed, 1 insertion(+), 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