summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-01-28 19:25:50 +0100
committerGravatar Tom Willemsen2011-01-28 19:25:50 +0100
commit046a31152373c8822fe11f2301572539b87f217d (patch)
tree9d91c73e681bedddafa1dc40949b6c885f9efa94
parentba46e0889e857e8904db0f9011a489836b79409d (diff)
downloaddotfiles-046a31152373c8822fe11f2301572539b87f217d.tar.gz
dotfiles-046a31152373c8822fe11f2301572539b87f217d.zip
Only show syntax if we're not running in emacs
-rw-r--r--zshrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/zshrc b/zshrc
index a706643..fbd0458 100644
--- a/zshrc
+++ b/zshrc
@@ -80,4 +80,9 @@ bindkey "\e0F" end-of-line
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
-source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh
+if [ -z $EMACS ]; then
+ source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh
+
+ ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue'
+ ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue'
+fi