Browse Source

Stop module loading when external code fails to source

master
Sorin Ionescu 11 years ago
parent
commit
a914a87aa9
  1. 2
      modules/history-substring-search/init.zsh
  2. 2
      modules/syntax-highlighting/init.zsh

2
modules/history-substring-search/init.zsh

@ -10,7 +10,7 @@ @@ -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

2
modules/syntax-highlighting/init.zsh

@ -11,7 +11,7 @@ if ! zstyle -t ':prezto:module:syntax-highlighting' color; then @@ -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'

Loading…
Cancel
Save