mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 10:29:25 +00:00
[Fix #202] Load modules all or nothing
This commit is contained in:
@ -5,13 +5,16 @@
|
||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
if zstyle -t ':omz:module:syntax-highlighting' color; then
|
||||
source "${0:h}/external/zsh-syntax-highlighting.zsh"
|
||||
|
||||
# Set the highlighters.
|
||||
zstyle -a ':omz:module:syntax-highlighting' highlighters 'ZSH_HIGHLIGHT_HIGHLIGHTERS'
|
||||
if (( ${#ZSH_HIGHLIGHT_HIGHLIGHTERS[@]} == 0 )); then
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets cursor)
|
||||
fi
|
||||
# Return if requirements are not found.
|
||||
if ! zstyle -t ':omz:module:syntax-highlighting' color; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
source "${0:h}/external/zsh-syntax-highlighting.zsh"
|
||||
|
||||
# Set the highlighters.
|
||||
zstyle -a ':omz:module:syntax-highlighting' highlighters 'ZSH_HIGHLIGHT_HIGHLIGHTERS'
|
||||
if (( ${#ZSH_HIGHLIGHT_HIGHLIGHTERS[@]} == 0 )); then
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets cursor)
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user