|
|
@ -45,11 +45,11 @@ function omodload {
|
|
|
|
setopt LOCAL_OPTIONS EXTENDED_GLOB
|
|
|
|
setopt LOCAL_OPTIONS EXTENDED_GLOB
|
|
|
|
|
|
|
|
|
|
|
|
# Add functions to fpath.
|
|
|
|
# Add functions to fpath.
|
|
|
|
fpath=(${omodules:+${PREZTO}/modules/${^omodules}/functions(/FN)} $fpath)
|
|
|
|
fpath=(${omodules:+${prezto}/modules/${^omodules}/functions(/FN)} $fpath)
|
|
|
|
|
|
|
|
|
|
|
|
# Load Prezto functions.
|
|
|
|
# Load Prezto functions.
|
|
|
|
for ofunction in \
|
|
|
|
for ofunction in \
|
|
|
|
$PREZTO/modules/${^omodules}/functions/^([_.]*|prompt_*_setup|README*)(.N:t)
|
|
|
|
$prezto/modules/${^omodules}/functions/^([_.]*|prompt_*_setup|README*)(.N:t)
|
|
|
|
do
|
|
|
|
do
|
|
|
|
autoload -Uz "$ofunction"
|
|
|
|
autoload -Uz "$ofunction"
|
|
|
|
done
|
|
|
|
done
|
|
|
@ -58,12 +58,12 @@ function omodload {
|
|
|
|
for omodule in "$omodules[@]"; do
|
|
|
|
for omodule in "$omodules[@]"; do
|
|
|
|
if zstyle -t ":omz:module:$omodule" loaded; then
|
|
|
|
if zstyle -t ":omz:module:$omodule" loaded; then
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
elif [[ ! -d "$PREZTO/modules/$omodule" ]]; then
|
|
|
|
elif [[ ! -d "$prezto/modules/$omodule" ]]; then
|
|
|
|
print "$0: no such module: $omodule" >&2
|
|
|
|
print "$0: no such module: $omodule" >&2
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if [[ -s "$PREZTO/modules/$omodule/init.zsh" ]]; then
|
|
|
|
if [[ -s "$prezto/modules/$omodule/init.zsh" ]]; then
|
|
|
|
source "$PREZTO/modules/$omodule/init.zsh"
|
|
|
|
source "$prezto/modules/$omodule/init.zsh"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if (( $? == 0 )); then
|
|
|
|
if (( $? == 0 )); then
|
|
|
|