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