Do not attempt to reload modules that failed to load
This commit is contained in:
parent
4711d6ba66
commit
6f916355b2
2
init.zsh
2
init.zsh
@ -47,7 +47,7 @@ function pmodload {
|
||||
|
||||
# Load Prezto modules.
|
||||
for pmodule in "$pmodules[@]"; do
|
||||
if zstyle -t ":prezto:module:$pmodule" loaded; then
|
||||
if zstyle -t ":prezto:module:$pmodule" loaded 'yes' 'no'; then
|
||||
continue
|
||||
elif [[ ! -d "${ZDOTDIR:-$HOME}/.zprezto/modules/$pmodule" ]]; then
|
||||
print "$0: no such module: $pmodule" >&2
|
||||
|
Reference in New Issue
Block a user