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