From 6f916355b257b19fbee278579a4a656fa9d32311 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 25 Sep 2012 17:33:10 -0400 Subject: [PATCH] Do not attempt to reload modules that failed to load --- init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.zsh b/init.zsh index 4c19daf3..fc12297c 100644 --- a/init.zsh +++ b/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