mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-17 12:21:13 +00:00
[Fix #4] Add zsh-syntax-highlighting
This commit is contained in:
parent
1dcf189e5a
commit
7f7d133678
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -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
|
||||
|
1
plugins/syntax-highlighting/external
Submodule
1
plugins/syntax-highlighting/external
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit bb0d575942760fe483790fe878ea43b1f781e2ca
|
12
plugins/syntax-highlighting/init.zsh
Normal file
12
plugins/syntax-highlighting/init.zsh
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user