https://github.com/ael-code/zsh-colored-man-pages
zsh plugin that colorifies man pages
https://github.com/ael-code/zsh-colored-man-pages
Last synced: 4 months ago
JSON representation
zsh plugin that colorifies man pages
- Host: GitHub
- URL: https://github.com/ael-code/zsh-colored-man-pages
- Owner: ael-code
- License: gpl-3.0
- Created: 2017-10-29T17:03:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-02T11:43:38.000Z (over 6 years ago)
- Last Synced: 2024-11-28T07:34:36.742Z (12 months ago)
- Language: Shell
- Size: 15.6 KB
- Stars: 62
- Watchers: 1
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - colored-man-pages - Colorize `man` pages. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - colored-man-pages - Colorize `man` pages. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - colored-man-pages - Colorize `man` pages. (Plugins / Zinit (née zplugin))
README
# zsh colored man pages
zsh plugin that colorifies man pages.
It simply provides a `man` wrapper function that shows colored manpages.
### Installation
#### Antigen
Add this to your `.zshrc`:
```
antigen bundle ael-code/zsh-colored-man-pages
```
#### From source
You can also load the `man` wrapper function by loading the `colored-man-pages.plugin.zsh` file directly:
```
source colored-man-pages.plugin.zsh && man less
```
### Rationale
The wrapper function uses the `LESS_TERMCAP_*` environment variables to set the ASNI escape sequences that `less` uses to print special strings (bold, underline, reversed, etc.. ).
ANSI escape sequences are retrieved from the terminfo database through the `tput` command.