From 04649ffc8dd0772dae1541ee75ca677a1731035a Mon Sep 17 00:00:00 2001 From: Sean Goller Date: Tue, 7 Aug 2012 17:54:14 -0700 Subject: [PATCH] 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. --- helper.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper.zsh b/helper.zsh index f8c82734..ebdf9779 100644 --- a/helper.zsh +++ b/helper.zsh @@ -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 }