Browse Source

[#126] Autoload only desired module functions

Fix a globbing bug introduced in 6233ec6.
master
Sorin Ionescu 13 years ago
parent
commit
d3c6771c27
  1. 2
      helper.zsh

2
helper.zsh

@ -36,7 +36,7 @@ function omodload { @@ -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

Loading…
Cancel
Save