mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-07 16:34:13 +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
|
||||
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
|
||||
|
||||
### From binaries
|
||||
|
Loading…
Reference in New Issue
Block a user