From d3c6771c27ad58b299f572874faa67440f65f5b3 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Wed, 11 Apr 2012 11:08:38 -0400 Subject: [PATCH] [#126] Autoload only desired module functions Fix a globbing bug introduced in 6233ec6. --- helper.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper.zsh b/helper.zsh index 612d7a20..18cc0c22 100644 --- a/helper.zsh +++ b/helper.zsh @@ -36,7 +36,7 @@ function omodload { fpath=(${argv:+${OMZ}/modules/${^argv}/functions(/FN)} $fpath) # Load Oh My Zsh functions. - for ofunction in $OMZ/modules/**/functions/^([_.]*|prompt_*_setup)(.N:t); do + for ofunction in $OMZ/modules/${^argv}/functions/^([_.]*|prompt_*_setup)(.N:t); do autoload -Uz "$ofunction" done unset ofunction