mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-01 03:51:12 +00:00
fb9a20591f
Conflicts: README.md runcoms/zshenv
22 lines
531 B
Bash
22 lines
531 B
Bash
#
|
|
# Integrates zsh-syntax-highlighting into Prezto.
|
|
#
|
|
# Authors:
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
#
|
|
|
|
# Return if requirements are not found.
|
|
if ! zstyle -t ':prezto:module:syntax-highlighting' color; then
|
|
return 1
|
|
fi
|
|
|
|
# Source module files.
|
|
source "${0:h}/external/zsh-syntax-highlighting.zsh"
|
|
|
|
# Set the highlighters.
|
|
zstyle -a ':prezto:module:syntax-highlighting' highlighters 'ZSH_HIGHLIGHT_HIGHLIGHTERS'
|
|
if (( ${#ZSH_HIGHLIGHT_HIGHLIGHTERS[@]} == 0 )); then
|
|
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets cursor)
|
|
fi
|
|
|