|
|
|
@ -28,6 +28,7 @@ function autoloadable {
@@ -28,6 +28,7 @@ function autoloadable {
|
|
|
|
|
# Loads Oh My Zsh modules. |
|
|
|
|
function omodload { |
|
|
|
|
local omodule |
|
|
|
|
local ofunction |
|
|
|
|
|
|
|
|
|
# Extended globbing is needed for autoloading of module functions. |
|
|
|
|
setopt EXTENDED_GLOB |
|
|
|
@ -36,10 +37,11 @@ function omodload {
@@ -36,10 +37,11 @@ function omodload {
|
|
|
|
|
fpath=(${argv:+${OMZ}/modules/${^argv}/functions(/FN)} $fpath) |
|
|
|
|
|
|
|
|
|
# Load Oh My Zsh functions. |
|
|
|
|
for ofunction in $OMZ/modules/${^argv}/functions/^([_.]*|prompt_*_setup|README*)(.N:t); do |
|
|
|
|
for ofunction in \ |
|
|
|
|
$OMZ/modules/${^argv}/functions/^([_.]*|prompt_*_setup|README*)(.N:t) |
|
|
|
|
do |
|
|
|
|
autoload -Uz "$ofunction" |
|
|
|
|
done |
|
|
|
|
unset ofunction |
|
|
|
|
|
|
|
|
|
# Extended globbing is no longer needed. |
|
|
|
|
unsetopt EXTENDED_GLOB |
|
|
|
|