1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-20 12:01:12 +00:00

Do not attempt to reload modules that failed to load

This commit is contained in:
Sorin Ionescu 2012-09-25 17:33:10 -04:00
parent 4711d6ba66
commit 6f916355b2

View File

@ -47,7 +47,7 @@ function pmodload {
# Load Prezto modules. # Load Prezto modules.
for pmodule in "$pmodules[@]"; do for pmodule in "$pmodules[@]"; do
if zstyle -t ":prezto:module:$pmodule" loaded; then if zstyle -t ":prezto:module:$pmodule" loaded 'yes' 'no'; then
continue continue
elif [[ ! -d "${ZDOTDIR:-$HOME}/.zprezto/modules/$pmodule" ]]; then elif [[ ! -d "${ZDOTDIR:-$HOME}/.zprezto/modules/$pmodule" ]]; then
print "$0: no such module: $pmodule" >&2 print "$0: no such module: $pmodule" >&2