1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 05:48:01 +00:00

[Fix #4] Add zsh-syntax-highlighting

This commit is contained in:
Sorin Ionescu 2012-03-29 10:47:30 -04:00
parent 1dcf189e5a
commit 7f7d133678
3 changed files with 16 additions and 0 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "plugins/history-substring-search/external"]
path = plugins/history-substring-search/external
url = https://github.com/zsh-users/zsh-history-substring-search.git
[submodule "plugins/syntax-highlighting/external"]
path = plugins/syntax-highlighting/external
url = https://github.com/zsh-users/zsh-syntax-highlighting.git

@ -0,0 +1 @@
Subproject commit bb0d575942760fe483790fe878ea43b1f781e2ca

View File

@ -0,0 +1,12 @@
#
# Integrates zsh-syntax-highlighting into Oh My Zsh.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
if zstyle -t ':omz:plugin:syntax-highlighting' color; then
source "${0:h}/external/zsh-syntax-highlighting.zsh"
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
fi