mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-23 05:38:01 +00:00
[#126] Autoload only desired module functions
Fix a globbing bug introduced in 6233ec6
.
This commit is contained in:
parent
64da1ed627
commit
d3c6771c27
@ -36,7 +36,7 @@ function omodload {
|
|||||||
fpath=(${argv:+${OMZ}/modules/${^argv}/functions(/FN)} $fpath)
|
fpath=(${argv:+${OMZ}/modules/${^argv}/functions(/FN)} $fpath)
|
||||||
|
|
||||||
# Load Oh My Zsh functions.
|
# 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"
|
autoload -Uz "$ofunction"
|
||||||
done
|
done
|
||||||
unset ofunction
|
unset ofunction
|
||||||
|
Loading…
Reference in New Issue
Block a user