From 59b6b30e2de80540cd11f8dc223bc760755ea394 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 13 Aug 2012 02:31:09 +0100 Subject: [PATCH] Add command-line as-you-type highlighting for zsh --- .gitmodules | 3 +++ shell/zsh/zsh-syntax-highlighting | 1 + shell/zshrc.sh | 10 ++++++++++ 3 files changed, 14 insertions(+) create mode 160000 shell/zsh/zsh-syntax-highlighting diff --git a/.gitmodules b/.gitmodules index a7fce78..c7c0589 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,6 @@ [submodule "shell/tmux/tmuxifier"] path = shell/tmux/tmuxifier url = git@github.com:jimeh/tmuxifier.git +[submodule "shell/zsh/zsh-syntax-highlighting"] + path = shell/zsh/zsh-syntax-highlighting + url = git://github.com/zsh-users/zsh-syntax-highlighting.git diff --git a/shell/zsh/zsh-syntax-highlighting b/shell/zsh/zsh-syntax-highlighting new file mode 160000 index 0000000..732b7d6 --- /dev/null +++ b/shell/zsh/zsh-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit 732b7d6e65c0349ee1d89b698bf9cd8a30c1015d diff --git a/shell/zshrc.sh b/shell/zshrc.sh index 9502db8..5b30257 100644 --- a/shell/zshrc.sh +++ b/shell/zshrc.sh @@ -51,3 +51,13 @@ unalias shotgun # Cause I hit emacs shorts too much bindkey -s "\C-x\C-f" "cd " + + +# +# Z-Shell Command Highlighting +# + +# Highlighters +ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets) + +source "$DOTZSH/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"