]> arthur.barton.de Git - ax-zsh.git/commitdiff
Add "zsh-syntax-highlighting" plugin
authorAlexander Barton <alex@barton.de>
Mon, 27 Jul 2015 23:05:20 +0000 (01:05 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 27 Jul 2015 23:05:20 +0000 (01:05 +0200)
plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zshrc [new file with mode: 0644]

diff --git a/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zshrc b/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zshrc
new file mode 100644 (file)
index 0000000..6913cb6
--- /dev/null
@@ -0,0 +1,13 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# zsh-syntax-highlighting.zshrc: Initialize "ZSH Syntax Highlighting"
+
+for script (
+       "/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
+); do
+       if [[ -r "$script" ]]; then
+               [[ -n "$ZSH_HIGHLIGHT_HIGHLIGHTERS" ]] \
+                       && ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
+               source "$script"
+               return
+       fi
+done