mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-03 04:08:50 +01:00
Add usage examples
This commit is contained in:
parent
6a417886aa
commit
fdeb98e859
25
README.md
25
README.md
@ -31,6 +31,31 @@ Oh.. you can also use it to concatenate files :wink:. Whenever
|
|||||||
`bat` detects a non-interactive terminal, it will fall back to printing
|
`bat` detects a non-interactive terminal, it will fall back to printing
|
||||||
the plain file contents.
|
the plain file contents.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Display a single file on the terminal
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
> bat README.md
|
||||||
|
```
|
||||||
|
|
||||||
|
Display multiple files at once
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
> bat src/*.rs
|
||||||
|
```
|
||||||
|
|
||||||
|
Explicitly specify the language
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
> yaml2json .travis.yml | json_pp | bat -l json
|
||||||
|
```
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
> curl -s https://raw.githubusercontent.com/sharkdp/bat/master/src/main.rs | bat -l rs
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### From binaries
|
### From binaries
|
||||||
|
Loading…
Reference in New Issue
Block a user