1
0
Fork 0

setup fpath in one go

pull/202/head
Ben O'Hara 13 years ago
parent 302759f82c
commit 096ae2c87d

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

@ -1 +1 @@
Subproject commit 8b89dd9d10e86313f49fafdf88e8540f97346f33
Subproject commit 39e26ca01fabcaa6f20d4638f56f9866a82f2b1f
Loading…
Cancel
Save