You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
762 B

3 years ago
  1. zsh-syntax-highlighting / highlighters / cursor
  2. -----------------------------------------------
  3. This is the `cursor` highlighter, that highlights the cursor.
  4. ### How to tweak it
  5. This highlighter defines the following styles:
  6. * `cursor` - the style for the current cursor position
  7. To override one of those styles, change its entry in `ZSH_HIGHLIGHT_STYLES`,
  8. for example in `~/.zshrc`:
  9. ```zsh
  10. ZSH_HIGHLIGHT_STYLES[cursor]='bg=blue'
  11. ```
  12. The syntax for values is the same as the syntax of "types of highlighting" of
  13. the zsh builtin `$zle_highlight` array, which is documented in [the `zshzle(1)`
  14. manual page][zshzle-Character-Highlighting].
  15. [zshzle-Character-Highlighting]: http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Character-Highlighting