[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 pull --rebase --stat origin master
git submodule update --init --recursive --remote --progress git submodule update --init --recursive --remote --progress
ZPLG_SKIP_LOADING=1
source "$ZSH_DOTFILES/plugins.zsh" source "$ZSH_DOTFILES/plugins.zsh"
zplg-upgrade zplg-upgrade

View file

@ -322,7 +322,9 @@ plugin() {
fi fi
done done
_zplg_debug "sourcing $script_path" _zplg_debug "sourcing $script_path"
if [[ -z "$ZPLG_SKIP_LOADING" ]]; then
_zplg_load "$script_path" || return "$?" _zplg_load "$script_path" || return "$?"
fi
done done
done; unset load_pattern ignore_pattern script_path done; unset load_pattern ignore_pattern script_path