|
@@ -44,3 +44,50 @@ if [ -f /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
|
44
|
44
|
ZSH_HIGHLIGHT_STYLES[bracket-level-5]=fg=cyan,bold
|
45
|
45
|
ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]=standout
|
46
|
46
|
fi
|
|
47
|
+
|
|
48
|
+# enable syntax-highlighting
|
|
49
|
+if [ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
|
|
50
|
+ . /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
51
|
+ ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
|
|
52
|
+ ZSH_HIGHLIGHT_STYLES[default]=none
|
|
53
|
+ ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=white,underline
|
|
54
|
+ ZSH_HIGHLIGHT_STYLES[reserved-word]=fg=cyan,bold
|
|
55
|
+ ZSH_HIGHLIGHT_STYLES[suffix-alias]=fg=green,underline
|
|
56
|
+ ZSH_HIGHLIGHT_STYLES[global-alias]=fg=green,bold
|
|
57
|
+ ZSH_HIGHLIGHT_STYLES[precommand]=fg=green,underline
|
|
58
|
+ ZSH_HIGHLIGHT_STYLES[commandseparator]=fg=blue,bold
|
|
59
|
+ ZSH_HIGHLIGHT_STYLES[autodirectory]=fg=green,underline
|
|
60
|
+ ZSH_HIGHLIGHT_STYLES[path]=bold
|
|
61
|
+ ZSH_HIGHLIGHT_STYLES[path_pathseparator]=
|
|
62
|
+ ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]=
|
|
63
|
+ ZSH_HIGHLIGHT_STYLES[globbing]=fg=blue,bold
|
|
64
|
+ ZSH_HIGHLIGHT_STYLES[history-expansion]=fg=blue,bold
|
|
65
|
+ ZSH_HIGHLIGHT_STYLES[command-substitution]=none
|
|
66
|
+ ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]=fg=magenta,bold
|
|
67
|
+ ZSH_HIGHLIGHT_STYLES[process-substitution]=none
|
|
68
|
+ ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]=fg=magenta,bold
|
|
69
|
+ ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=fg=green
|
|
70
|
+ ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=fg=green
|
|
71
|
+ ZSH_HIGHLIGHT_STYLES[back-quoted-argument]=none
|
|
72
|
+ ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]=fg=blue,bold
|
|
73
|
+ ZSH_HIGHLIGHT_STYLES[single-quoted-argument]=fg=yellow
|
|
74
|
+ ZSH_HIGHLIGHT_STYLES[double-quoted-argument]=fg=yellow
|
|
75
|
+ ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]=fg=yellow
|
|
76
|
+ ZSH_HIGHLIGHT_STYLES[rc-quote]=fg=magenta
|
|
77
|
+ ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]=fg=magenta,bold
|
|
78
|
+ ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]=fg=magenta,bold
|
|
79
|
+ ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]=fg=magenta,bold
|
|
80
|
+ ZSH_HIGHLIGHT_STYLES[assign]=none
|
|
81
|
+ ZSH_HIGHLIGHT_STYLES[redirection]=fg=blue,bold
|
|
82
|
+ ZSH_HIGHLIGHT_STYLES[comment]=fg=black,bold
|
|
83
|
+ ZSH_HIGHLIGHT_STYLES[named-fd]=none
|
|
84
|
+ ZSH_HIGHLIGHT_STYLES[numeric-fd]=none
|
|
85
|
+ ZSH_HIGHLIGHT_STYLES[arg0]=fg=cyan
|
|
86
|
+ ZSH_HIGHLIGHT_STYLES[bracket-error]=fg=red,bold
|
|
87
|
+ ZSH_HIGHLIGHT_STYLES[bracket-level-1]=fg=blue,bold
|
|
88
|
+ ZSH_HIGHLIGHT_STYLES[bracket-level-2]=fg=green,bold
|
|
89
|
+ ZSH_HIGHLIGHT_STYLES[bracket-level-3]=fg=magenta,bold
|
|
90
|
+ ZSH_HIGHLIGHT_STYLES[bracket-level-4]=fg=yellow,bold
|
|
91
|
+ ZSH_HIGHLIGHT_STYLES[bracket-level-5]=fg=cyan,bold
|
|
92
|
+ ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]=standout
|
|
93
|
+fi
|