[zsh] skip plugin loading in upgrade.sh

This commit is contained in:
Dmytro Meleshko 2019-08-26 22:45:11 +03:00
parent 1f97d82654
commit 8971334543
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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