Skip to content
Browse files

Do not attempt to reload modules that failed to load

  • Loading branch information...
1 parent 4711d6b commit 6f916355b257b19fbee278579a4a656fa9d32311 Sorin Ionescu committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 init.zsh
View
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

0 comments on commit 6f91635

Please sign in to comment.
Something went wrong with that request. Please try again.