add new alias, adjust help
[zsh.git] / .zsh / 25_ZshHighlight.zsh
index abee0a5..ba06514 100644 (file)
@@ -3,51 +3,53 @@
 # Use zsh syntax highlighting
 #
 
-if [ -d $ZDOTDIR/zsh-syntax-highlighting ]; then
-       ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
-       source $ZDOTDIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
-fi
+if is434; then
+    if [ -d $ZDOTDIR/zsh-syntax-highlighting ]; then
+           ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
+           source $ZDOTDIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+    fi
 
-ZSH_HIGHLIGHT_STYLES[default]="none"
+    ZSH_HIGHLIGHT_STYLES[default]="none"
 
-ZSH_HIGHLIGHT_STYLES[assign]="none"
+    ZSH_HIGHLIGHT_STYLES[assign]="none"
 
-ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]="fg=yellow,bold"
-ZSH_HIGHLIGHT_STYLES[back-quoted-argument]="green"
+    ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]="fg=yellow,bold"
+    ZSH_HIGHLIGHT_STYLES[back-quoted-argument]="green"
 
-ZSH_HIGHLIGHT_STYLES[bracket-error]="fg=red,bold"
-ZSH_HIGHLIGHT_STYLES[bracket-level-1]="fg=yellow,bold"
-ZSH_HIGHLIGHT_STYLES[bracket-level-2]="fg=green"
-ZSH_HIGHLIGHT_STYLES[bracket-level-3]="fg=cyan,bold"
-ZSH_HIGHLIGHT_STYLES[bracket-level-4]="fg=blue"
-ZSH_HIGHLIGHT_STYLES[bracket-level-5]="fg=magenta"
-ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]="fg=white,underline,bold"
+    ZSH_HIGHLIGHT_STYLES[bracket-error]="fg=red,bold"
+    ZSH_HIGHLIGHT_STYLES[bracket-level-1]="fg=yellow,bold"
+    ZSH_HIGHLIGHT_STYLES[bracket-level-2]="fg=green"
+    ZSH_HIGHLIGHT_STYLES[bracket-level-3]="fg=cyan,bold"
+    ZSH_HIGHLIGHT_STYLES[bracket-level-4]="fg=blue"
+    ZSH_HIGHLIGHT_STYLES[bracket-level-5]="fg=magenta"
+    ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]="fg=white,underline,bold"
 
-ZSH_HIGHLIGHT_STYLES[builtin]="fg=cyan,bold,underline"
-ZSH_HIGHLIGHT_STYLES[function]="fg=cyan,bold"
-ZSH_HIGHLIGHT_STYLES[alias]="fg=cyan"
-ZSH_HIGHLIGHT_STYLES[command]="fg=normal"
-ZSH_HIGHLIGHT_STYLES[hashed-command]="fg=normal,bold"
-ZSH_HIGHLIGHT_STYLES[path]="fg=normal"
-ZSH_HIGHLIGHT_STYLES[precommand]="fg=normal,underline"
-ZSH_HIGHLIGHT_STYLES[reserved-word]="fg=cyan,underline"
+    ZSH_HIGHLIGHT_STYLES[builtin]="fg=cyan,bold,underline"
+    ZSH_HIGHLIGHT_STYLES[function]="fg=cyan,bold"
+    ZSH_HIGHLIGHT_STYLES[alias]="fg=cyan"
+    ZSH_HIGHLIGHT_STYLES[command]="fg=normal"
+    ZSH_HIGHLIGHT_STYLES[hashed-command]="fg=normal,bold"
+    ZSH_HIGHLIGHT_STYLES[path]="fg=normal"
+    ZSH_HIGHLIGHT_STYLES[precommand]="fg=normal,underline"
+    ZSH_HIGHLIGHT_STYLES[reserved-word]="fg=cyan,underline"
 
-ZSH_HIGHLIGHT_STYLES[history-expansion]="fg=blue"
+    ZSH_HIGHLIGHT_STYLES[history-expansion]="fg=blue"
 
-ZSH_HIGHLIGHT_STYLES[globbing]="fg=cyan"
+    ZSH_HIGHLIGHT_STYLES[globbing]="fg=cyan"
 
-ZSH_HIGHLIGHT_STYLES[commandseparator]="none"
+    ZSH_HIGHLIGHT_STYLES[commandseparator]="none"
 
-ZSH_HIGHLIGHT_STYLES[cursor]="bold"
+    ZSH_HIGHLIGHT_STYLES[cursor]="bold"
 
-ZSH_HIGHLIGHT_STYLES[single-hyphen-option]="green"
-ZSH_HIGHLIGHT_STYLES[double-hyphen-option]="yellow"
-ZSH_HIGHLIGHT_STYLES[single-quoted-argument]="fg=green,bold"
-ZSH_HIGHLIGHT_STYLES[double-quoted-argument]="fg=yellow,bold"
-ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]="fg=blue,bold"
+    ZSH_HIGHLIGHT_STYLES[single-hyphen-option]="green"
+    ZSH_HIGHLIGHT_STYLES[double-hyphen-option]="yellow"
+    ZSH_HIGHLIGHT_STYLES[single-quoted-argument]="fg=green,bold"
+    ZSH_HIGHLIGHT_STYLES[double-quoted-argument]="fg=yellow,bold"
+    ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]="fg=blue,bold"
 
 
-ZSH_HIGHLIGHT_STYLES[root]="standout"
+    ZSH_HIGHLIGHT_STYLES[root]="standout"
 
 
-ZSH_HIGHLIGHT_STYLES[unknown-token]="fg=red,bold"
+    ZSH_HIGHLIGHT_STYLES[unknown-token]="fg=red,bold"
+fi