From 7f7d1336788f77f113b37679df1b48dc620f7f1c Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Thu, 29 Mar 2012 10:47:30 -0400 Subject: [PATCH] [Fix #4] Add zsh-syntax-highlighting --- .gitmodules | 3 +++ plugins/syntax-highlighting/external | 1 + plugins/syntax-highlighting/init.zsh | 12 ++++++++++++ 3 files changed, 16 insertions(+) create mode 160000 plugins/syntax-highlighting/external create mode 100644 plugins/syntax-highlighting/init.zsh diff --git a/.gitmodules b/.gitmodules index 26bffd9..5091b22 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/plugins/syntax-highlighting/external b/plugins/syntax-highlighting/external new file mode 160000 index 0000000..bb0d575 --- /dev/null +++ b/plugins/syntax-highlighting/external @@ -0,0 +1 @@ +Subproject commit bb0d575942760fe483790fe878ea43b1f781e2ca diff --git a/plugins/syntax-highlighting/init.zsh b/plugins/syntax-highlighting/init.zsh new file mode 100644 index 0000000..5b8e751 --- /dev/null +++ b/plugins/syntax-highlighting/init.zsh @@ -0,0 +1,12 @@ +# +# Integrates zsh-syntax-highlighting into Oh My Zsh. +# +# Authors: +# Sorin Ionescu +# + +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 +