|
|
@ -53,8 +53,6 @@ autoload -Uz zmv
|
|
|
|
|
|
|
|
|
|
|
|
# Source plugins defined in ~/.zshrc.
|
|
|
|
# Source plugins defined in ~/.zshrc.
|
|
|
|
for plugin in "$plugins[@]"; do
|
|
|
|
for plugin in "$plugins[@]"; do
|
|
|
|
zstyle ":omz:plugin:$plugin" enable 'yes'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ! -d "${0:h}/plugins/$plugin" ]]; then
|
|
|
|
if [[ ! -d "${0:h}/plugins/$plugin" ]]; then
|
|
|
|
print "omz: no such plugin: $plugin" >&2
|
|
|
|
print "omz: no such plugin: $plugin" >&2
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -62,6 +60,10 @@ for plugin in "$plugins[@]"; do
|
|
|
|
if [[ -f "${0:h}/plugins/$plugin/init.zsh" ]]; then
|
|
|
|
if [[ -f "${0:h}/plugins/$plugin/init.zsh" ]]; then
|
|
|
|
source "${0:h}/plugins/$plugin/init.zsh"
|
|
|
|
source "${0:h}/plugins/$plugin/init.zsh"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (( $? == 0 )); then
|
|
|
|
|
|
|
|
zstyle ":omz:plugin:$plugin" enable 'yes'
|
|
|
|
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
unset plugin plugins
|
|
|
|
unset plugin plugins
|
|
|
|
|
|
|
|
|
|
|
|