1
0
Fork 0

Fix an overzealous search and replace. (I think.)

In helper.zsh, there is a function, pmodload, which autoloads all functions
for the modules being loaded. A regex, pfunction_glob, is used to determine
which files in a given module's functions directory should be considered a
function definition. However, in the for loops in this function,
"pfunction" got replaced with "README.md", which resolved to a non-existent
file, so no functions for any plugins loaded.
pull/234/head
Sean Goller 12 years ago
parent 0b23e9d20f
commit 04649ffc8d

@ -49,7 +49,7 @@ function pmodload {
setopt LOCAL_OPTIONS EXTENDED_GLOB
# Load Prezto functions.
for pfunction in $PDIR/modules/${^pmodules}/functions/$~README.md_glob; do
for pfunction in $PDIR/modules/${^pmodules}/functions/$~pfunction_glob; do
autoload -Uz "$pfunction"
done
}
@ -80,7 +80,7 @@ function pmodload {
setopt LOCAL_OPTIONS EXTENDED_GLOB
# Unload Prezto functions.
for pfunction in $PDIR/modules/$pmodule/functions/$~README.md_glob; do
for pfunction in $PDIR/modules/$pmodule/functions/$~pfunction_glob; do
unfunction "$pfunction"
done
}

Loading…
Cancel
Save