From a914a87aa91147709306a8ee4206928587a98dd4 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 27 Aug 2013 22:22:55 -0400 Subject: [PATCH] Stop module loading when external code fails to source --- modules/history-substring-search/init.zsh | 2 +- modules/syntax-highlighting/init.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/history-substring-search/init.zsh b/modules/history-substring-search/init.zsh index 53eb99be..0fc191d8 100644 --- a/modules/history-substring-search/init.zsh +++ b/modules/history-substring-search/init.zsh @@ -10,7 +10,7 @@ pmodload 'editor' # Source module files. -source "${0:h}/external/zsh-history-substring-search.zsh" +source "${0:h}/external/zsh-history-substring-search.zsh" || return 1 # # Search diff --git a/modules/syntax-highlighting/init.zsh b/modules/syntax-highlighting/init.zsh index e5c555bd..55172b89 100644 --- a/modules/syntax-highlighting/init.zsh +++ b/modules/syntax-highlighting/init.zsh @@ -11,7 +11,7 @@ if ! zstyle -t ':prezto:module:syntax-highlighting' color; then fi # Source module files. -source "${0:h}/external/zsh-syntax-highlighting.zsh" +source "${0:h}/external/zsh-syntax-highlighting.zsh" || return 1 # Set highlighters. zstyle -a ':prezto:module:syntax-highlighting' highlighters 'ZSH_HIGHLIGHT_HIGHLIGHTERS'