From 897133454389dfc60a4d8b2e23e8df5bad66fd21 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Mon, 26 Aug 2019 22:45:11 +0300 Subject: [PATCH] [zsh] skip plugin loading in upgrade.sh --- upgrade.zsh | 1 + zsh/zplg.zsh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/upgrade.zsh b/upgrade.zsh index d3cf67c..3f4b7be 100755 --- a/upgrade.zsh +++ b/upgrade.zsh @@ -7,5 +7,6 @@ ZSH_DOTFILES="$DOTFILES_PATH/zsh" git pull --rebase --stat origin master git submodule update --init --recursive --remote --progress +ZPLG_SKIP_LOADING=1 source "$ZSH_DOTFILES/plugins.zsh" zplg-upgrade diff --git a/zsh/zplg.zsh b/zsh/zplg.zsh index f7fe8f0..6359214 100644 --- a/zsh/zplg.zsh +++ b/zsh/zplg.zsh @@ -322,7 +322,9 @@ plugin() { fi done _zplg_debug "sourcing $script_path" - _zplg_load "$script_path" || return "$?" + if [[ -z "$ZPLG_SKIP_LOADING" ]]; then + _zplg_load "$script_path" || return "$?" + fi done done; unset load_pattern ignore_pattern script_path