initial
[zsh.git] / .zsh / 25_ZshHighlight.zsh
1 # -*- mode: sh;-*-
2 #
3 # Use zsh syntax highlighting
4 #
5
6 if [ -d $ZDOTDIR/zsh-syntax-highlighting ]; then
7 ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
8 source $ZDOTDIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
9 fi
10
11 ZSH_HIGHLIGHT_STYLES[default]="none"
12
13 ZSH_HIGHLIGHT_STYLES[assign]="none"
14
15 ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]="fg=yellow,bold"
16 ZSH_HIGHLIGHT_STYLES[back-quoted-argument]="green"
17
18 ZSH_HIGHLIGHT_STYLES[bracket-error]="fg=red,bold"
19 ZSH_HIGHLIGHT_STYLES[bracket-level-1]="fg=yellow,bold"
20 ZSH_HIGHLIGHT_STYLES[bracket-level-2]="fg=green"
21 ZSH_HIGHLIGHT_STYLES[bracket-level-3]="fg=cyan,bold"
22 ZSH_HIGHLIGHT_STYLES[bracket-level-4]="fg=blue"
23 ZSH_HIGHLIGHT_STYLES[bracket-level-5]="fg=magenta"
24 ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]="fg=white,underline,bold"
25
26 ZSH_HIGHLIGHT_STYLES[builtin]="fg=cyan,bold,underline"
27 ZSH_HIGHLIGHT_STYLES[function]="fg=cyan,bold"
28 ZSH_HIGHLIGHT_STYLES[alias]="fg=cyan"
29 ZSH_HIGHLIGHT_STYLES[command]="fg=normal"
30 ZSH_HIGHLIGHT_STYLES[hashed-command]="fg=normal,bold"
31 ZSH_HIGHLIGHT_STYLES[path]="fg=normal"
32 ZSH_HIGHLIGHT_STYLES[precommand]="fg=normal,underline"
33 ZSH_HIGHLIGHT_STYLES[reserved-word]="fg=cyan,underline"
34
35 ZSH_HIGHLIGHT_STYLES[history-expansion]="fg=blue"
36
37 ZSH_HIGHLIGHT_STYLES[globbing]="fg=cyan"
38
39 ZSH_HIGHLIGHT_STYLES[commandseparator]="none"
40
41 ZSH_HIGHLIGHT_STYLES[cursor]="bold"
42
43 ZSH_HIGHLIGHT_STYLES[single-hyphen-option]="green"
44 ZSH_HIGHLIGHT_STYLES[double-hyphen-option]="yellow"
45 ZSH_HIGHLIGHT_STYLES[single-quoted-argument]="fg=green,bold"
46 ZSH_HIGHLIGHT_STYLES[double-quoted-argument]="fg=yellow,bold"
47 ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]="fg=blue,bold"
48
49
50 ZSH_HIGHLIGHT_STYLES[root]="standout"
51
52
53 ZSH_HIGHLIGHT_STYLES[unknown-token]="fg=red,bold"