diff --git a/README.md b/README.md index 18206c4..95f8c01 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,13 @@ It has keys like `reserved-word`, `alias`, `command`, `path`, which are assigned with strings like `fg=blue,bold`, to configure how given elements are to be colored. If you assign this array before loading `hsmw` you will change the defaults. Complete list of available keys is [at the beginning](https://github.com/psprint/history-search-multi-word/blob/master/hsmw-highlight#L34-L62) -of `hsmw-highlight` file. +of `hsmw-highlight` file. Example `~/.zshrc` addition that sets `path` key – +paths will be highlighted with background magenta, foreground white, bold: + +```zsh +typeset -gA HSMW_HIGHLIGHT_STYLES +HSMW_HIGHLIGHT_STYLES[path]="bg=magenta,fg=white,bold" +``` ## IRC Channel