my xfce4 dotfiles
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.

32 lines
1.1 KiB

3 years ago
  1. # Colored man pages plugin
  2. This plugin adds colors to man pages.
  3. To use it, add `colored-man-pages` to the plugins array in your zshrc file:
  4. ```zsh
  5. plugins=(... colored-man-pages)
  6. ```
  7. It will also automatically colorize man pages displayed by `dman` or `debman`,
  8. from [`debian-goodies`](https://packages.debian.org/stable/debian-goodies).
  9. You can also try to color other pages by prefixing the respective command with `colored`:
  10. ```zsh
  11. colored git help clone
  12. ```
  13. ## Customization
  14. The plugin declares global associative array `less_termcap`, which maps termcap capabilities to escape
  15. sequences for the `less` pager. This mapping can be further customized by the user after the plugin is
  16. loaded. Check out sources for more.
  17. For example: `less_termcap[md]` maps to `LESS_TERMCAP_md` which is the escape sequence that tells `less`
  18. how to print something in bold. It's currently shown in bold red, but if you want to change it, you
  19. can redefine `less_termcap[md]` in your zshrc file, after OMZ is sourced:
  20. ```zsh
  21. less_termcap[md]="${fg_bold[blue]}" # this tells less to print bold text in bold blue
  22. ```