on master help sign in
Extend 'man' integration section
commit45f3c7333133bfb56c886bd5d3acd2d17332319d authorsharkdp <davidpeter@web.de> dateSat 21 Sep 2019, 08:51 (7 years ago) parent4102175
1 file changed+8−2
README.md+8−2
README.md+8−2
@@ -142,14 +142,20 @@ bat main.cpp | xclip
142142
143143#### `man`
144144
145−`bat` can be used as a pager for `man`. You can use [`batman`](https://github.com/eth-p/bat-extras/blob/master/doc/batman.md), or like this in your shell:
145+`bat` can be used as a colorizing pager for `man`, by setting the
146+`MANPAGER` environment variable:
146147
147148```bash
148149export MANPAGER="sh -c 'col -bx | bat -l man -p'"
149150man 2 select
150151```
151152
152−The [Manpage syntax](assets/syntaxes/Manpage.sublime-syntax) is developed in this repository and still needs some work.
153+It might also be necessary to set `MANROFFOPT="-c"` if you experience
154+formatting problems.
155+
156+If you prefer to have this bundled in a new command, you can also use [`batman`](https://github.com/eth-p/bat-extras/blob/master/doc/batman.md).
157+
158+Note that the [Manpage syntax](assets/syntaxes/Manpage.sublime-syntax) is developed in this repository and still needs some work.
153159
154160#### `prettier` / `shfmt` / `rustfmt`
155161