mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-29 11:13:43 +01:00
Add eth-p/bat-extras integrations to README
This commit is contained in:
parent
7a5d1f27e7
commit
30ee2a464f
16
README.md
16
README.md
@ -105,6 +105,14 @@ If you happen to use [`fd`](https://github.com/sharkdp/fd), you can use the `-X`
|
|||||||
fd … -X bat
|
fd … -X bat
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### `ripgrep`
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
batgrep Printer src/
|
||||||
|
```
|
||||||
|
|
||||||
#### `tail -f`
|
#### `tail -f`
|
||||||
|
|
||||||
`bat` can be combined with `tail -f` to continuously monitor a given file with syntax highlighting.
|
`bat` can be combined with `tail -f` to continuously monitor a given file with syntax highlighting.
|
||||||
@ -134,7 +142,8 @@ bat main.cpp | xclip
|
|||||||
|
|
||||||
#### `man`
|
#### `man`
|
||||||
|
|
||||||
`bat` can be used as a pager for `man`. It can be used like this:
|
`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:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export MANPAGER="sh -c 'col -b | bat -l man -p'"
|
export MANPAGER="sh -c 'col -b | bat -l man -p'"
|
||||||
man 2 select
|
man 2 select
|
||||||
@ -142,6 +151,11 @@ man 2 select
|
|||||||
|
|
||||||
The [Manpage syntax](assets/syntaxes/Manpage.sublime-syntax) is developed in this repository and still needs some work.
|
The [Manpage syntax](assets/syntaxes/Manpage.sublime-syntax) is developed in this repository and still needs some work.
|
||||||
|
|
||||||
|
#### `prettier` / `shfmt` / `rustfmt`
|
||||||
|
|
||||||
|
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`.
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
[![Packaging status](https://repology.org/badge/vertical-allrepos/bat.svg)](https://repology.org/project/bat/versions)
|
[![Packaging status](https://repology.org/badge/vertical-allrepos/bat.svg)](https://repology.org/project/bat/versions)
|
||||||
|
Loading…
Reference in New Issue
Block a user