summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-03-01 17:15:18 -0600
committerJesse Luehrs <doy@tozt.net>2012-03-01 18:07:31 -0600
commit41a5497f0d420524d14a032208ca8b40e7593c4f (patch)
tree53159713f46d97df5aa4c671391d638f65a06e31
parent6009ba2628c001f7f8ea4edd3defe22681dbabdf (diff)
downloadconf-41a5497f0d420524d14a032208ca8b40e7593c4f.tar.gz
conf-41a5497f0d420524d14a032208ca8b40e7593c4f.zip
add zsh-syntax-highlighting plugin
-rw-r--r--.gitmodules3
-rw-r--r--Makefile3
m---------zsh/zsh-syntax-highlighting0
-rw-r--r--zshrc12
4 files changed, 17 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
index 70cbe06..91e36d8 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -37,3 +37,6 @@
[submodule "vim/bundle/gundo"]
path = vim/bundle/gundo
url = git://github.com/sjl/gundo.vim.git
+[submodule "zsh/zsh-syntax-highlighting"]
+ path = zsh/zsh-syntax-highlighting
+ url = git://github.com/zsh-users/zsh-syntax-highlighting
diff --git a/Makefile b/Makefile
index aa6d535..2b23c62 100644
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,8 @@ INSTALL = abcde.conf \
themes \
urxvt \
vim \
- xmonad
+ xmonad \
+ zsh
INSTALLED = $(patsubst %,$(INTO)/.%,$(INSTALL))
BUILD = bin/nethack/timettyrec pwsafe.dat $(addsuffix .dat,$(filter-out %.dat,$(wildcard fortune/*)))
diff --git a/zsh/zsh-syntax-highlighting b/zsh/zsh-syntax-highlighting
new file mode 160000
+Subproject bb0d575942760fe483790fe878ea43b1f781e2c
diff --git a/zshrc b/zshrc
index 6adcd9c..44605cf 100644
--- a/zshrc
+++ b/zshrc
@@ -42,6 +42,18 @@ export HISTFILE=$HOME/.zsh_history
export HISTSIZE=1000000000
export SAVEHIST=1000000000
export SPROMPT="Correct $fg[red]%R$reset_color to $fg[green]%r$reset_color? [ynae] "
+# plugins {{{
+# zsh-syntax-highlighting {{{
+source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+ZSH_HIGHLIGHT_STYLES[path]='fg=blue,bold'
+ZSH_HIGHLIGHT_STYLES[assign]='fg=cyan'
+ZSH_HIGHLIGHT_STYLES[command]='fg=green'
+ZSH_HIGHLIGHT_STYLES[precommand]='fg=yellow'
+ZSH_HIGHLIGHT_STYLES[builtin]='fg=yellow'
+ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=yellow'
+ZSH_HIGHLIGHT_STYLES[globbing]='fg=magenta'
+# }}}
+# }}}
# prompt {{{
function shell_prompt_precmd () {
PROMPT=`fancy-prompt --prompt-escape zsh $?`