on master help sign in
Add eth-p/bat-extras integrations to README
30ee2a4Ethan P
README.md+15−1
@@ -105,6 +105,14 @@ If you happen to use [`fd`](https://github.com/sharkdp/fd), you can use the `-X`
105fd … -X bat
105fd … -X bat
106```
106```
107
107
108+#### `ripgrep`
109+
110+With [`batgrep`](https://github.com/eth-p/bat-extras/blob/master/doc/batgrep.md), `bat` can be used as the printer for [`ripgrep`](https://github.com/BurntSushi/ripgrep) search results.
111+
112+```bash
113+batgrep Printer src/
114+```
115+
108#### `tail -f`
116#### `tail -f`
109
117
110`bat` can be combined with `tail -f` to continuously monitor a given file with syntax highlighting.
118`bat` can be combined with `tail -f` to continuously monitor a given file with syntax highlighting.
@@ -134,7 +142,8 @@ bat main.cpp | xclip
134
142
135#### `man`
143#### `man`
136
144
137−`bat` can be used as a pager for `man`. It can be used like this:
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:
146+
138```bash
147```bash
139export MANPAGER="sh -c 'col -b | bat -l man -p'"
148export MANPAGER="sh -c 'col -b | bat -l man -p'"
140man 2 select
149man 2 select
@@ -142,6 +151,11 @@ man 2 select
142
151
143The [Manpage syntax](assets/syntaxes/Manpage.sublime-syntax) is developed in this repository and still needs some work.
152The [Manpage syntax](assets/syntaxes/Manpage.sublime-syntax) is developed in this repository and still needs some work.
144
153
154+#### `prettier` / `shfmt` / `rustfmt`
155+
156+The [`prettybat`](https://github.com/eth-p/bat-extras/blob/master/doc/prettybat.md) script is a wrapper that will format code and print it with `bat`.
157+
158+
145## Installation
159## Installation
146
160
147[![Packaging status](https://repology.org/badge/vertical-allrepos/bat.svg)](https://repology.org/project/bat/versions)
161[![Packaging status](https://repology.org/badge/vertical-allrepos/bat.svg)](https://repology.org/project/bat/versions)