|
|
@ -38,6 +38,9 @@ function omodload {
|
|
|
|
# $argv is overridden in the anonymous function.
|
|
|
|
# $argv is overridden in the anonymous function.
|
|
|
|
omodules=("$argv[@]")
|
|
|
|
omodules=("$argv[@]")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Add functions to fpath.
|
|
|
|
|
|
|
|
fpath=(${OMZ}/modules/${^omodules}/functions(/FN) $fpath)
|
|
|
|
|
|
|
|
|
|
|
|
for omodule in "$omodules[@]"; do
|
|
|
|
for omodule in "$omodules[@]"; do
|
|
|
|
if zstyle -t ":omz:module:$omodule" loaded; then
|
|
|
|
if zstyle -t ":omz:module:$omodule" loaded; then
|
|
|
|
continue
|
|
|
|
continue
|
|
|
@ -46,8 +49,6 @@ function omodload {
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if [[ -s "$OMZ/modules/$omodule/init.zsh" ]]; then
|
|
|
|
if [[ -s "$OMZ/modules/$omodule/init.zsh" ]]; then
|
|
|
|
# Add functions to fpath.
|
|
|
|
|
|
|
|
fpath=(${OMZ}/modules/${^omodule}/functions(/FN) $fpath)
|
|
|
|
|
|
|
|
source "$OMZ/modules/$omodule/init.zsh"
|
|
|
|
source "$OMZ/modules/$omodule/init.zsh"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if (( $? == 0 )); then
|
|
|
|
if (( $? == 0 )); then
|
|
|
|