From 6d93ea07fd61503793cede3f5589feebc1483a1c Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 10 Sep 2015 19:44:19 +0000 Subject: [PATCH] main highlighter docs: README: Tweak. --- highlighters/main/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/highlighters/main/README.md b/highlighters/main/README.md index 7934769..0c69335 100644 --- a/highlighters/main/README.md +++ b/highlighters/main/README.md @@ -49,6 +49,9 @@ This highlighter defines the following styles: To override one of those styles, change its entry in `ZSH_HIGHLIGHT_STYLES`, for example in `~/.zshrc`: + # Declare the variable + typeset -A ZSH_HIGHLIGHT_STYLES + # To differentiate aliases from other command types ZSH_HIGHLIGHT_STYLES[alias]='fg=magenta,bold' @@ -58,4 +61,5 @@ To override one of those styles, change its entry in `ZSH_HIGHLIGHT_STYLES`, for # To disable highlighting of globbing expressions ZSH_HIGHLIGHT_STYLES[globbing]='none' -The syntax for declaring styles is [documented here](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC135). +The syntax for declaring styles is documented in [the `zshzle(1)` manual +page](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC135).