Browse code

Added the zsh-syntax-highlighting plugin

Nicolas Viennot authored on 11/06/2011 at 18:28:36
Showing 3 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,3 @@
0
+[submodule "plugins/zsh-syntax-highlighting"]
1
+	path = plugins/zsh-syntax-highlighting
2
+	url = git://github.com/nicoulaj/zsh-syntax-highlighting.git
0 3
new file mode 160000
... ...
@@ -0,0 +1 @@
0
+Subproject commit 0999ab05bafe034fdcbca507f369b669a0b41d35
... ...
@@ -21,7 +21,7 @@ export DISABLE_AUTO_UPDATE="true"
21 21
 
22 22
 # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
23 23
 # Example format: plugins=(rails git textmate ruby lighthouse)
24
-plugins=(git github git-flow cap gem lol)
24
+plugins=(git github git-flow cap gem lol zsh-syntax-highlighting)
25 25
 
26 26
 source /etc/profile
27 27
 source $ZSH/oh-my-zsh.sh
... ...
@@ -32,6 +32,27 @@ unsetopt nomatch
32 32
 LS_COLORS='no=00;32:fi=00:di=00;34:ln=01;36:pi=04;33:so=01;35:bd=33;04:cd=33;04:or=31;01:ex=00;32:*.rtf=00;33:*.txt=00;33:*.html=00;33:*.doc=00;33:*.pdf=00;33:*.ps=00;33:*.sit=00;31:*.hqx=00;31:*.bin=00;31:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.deb=00;31:*.dmg=00;36:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.ppm=00;35:*.tga=00;35:*.xbm=00;35:*.xpm=00;35:*.tif=00;35:*.mpg=00;37:*.avi=00;37:*.gl=00;37:*.dl=00;37:*.mov=00;37:*.mp3=00;35:'
33 33
 export LS_COLORS;
34 34
 zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
35
+ZSH_HIGHLIGHT_STYLES+=(
36
+  default                       'none'
37
+  unknown-token                 'fg=red,bold'
38
+  reserved-word                 'fg=yellow'
39
+  alias                         'fg=none,bold'
40
+  builtin                       'fg=none,bold'
41
+  function                      'fg=none,bold'
42
+  command                       'fg=none,bold'
43
+  hashed-command                'fg=none,bold'
44
+  path                          'fg=cyan'
45
+  globbing                      'fg=cyan'
46
+  history-expansion             'fg=blue'
47
+  single-hyphen-option          'fg=magenta'
48
+  double-hyphen-option          'fg=magenta'
49
+  back-quoted-argument          'fg=magenta,bold'
50
+  single-quoted-argument        'fg=green'
51
+  double-quoted-argument        'fg=green'
52
+  dollar-double-quoted-argument 'fg=cyan'
53
+  back-double-quoted-argument   'fg=cyan'
54
+  assign                        'none'
55
+)
35 56
 
36 57
 #bindkey "\e[H" beginning-of-line
37 58
 #bindkey "\e[F" end-of-line