Update README.md

This commit is contained in:
David Peter 2018-04-26 00:02:53 +02:00 committed by GitHub
parent 64de2a44d5
commit 0e8e39a59d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 4 deletions

View File

@ -9,21 +9,30 @@
### Syntax highlighting
![bat src/main.rs](https://i.imgur.com/bcnFRSl.png)
A large number of languages are supported (via Sublime Text definition files):
![bat src/example.js](https://i.imgur.com/uyBewNX.png)
![Syntax highlighting example](https://imgur.com/rGsdnDe.png)
### Git integration
![bat src/index.html](https://i.imgur.com/yBQ31jm.png)
Additions, modifications and deletions are shown (a la `git diff`):
![Git integration example](https://imgur.com/2lSW4RE)
## Installation
To compile `bat` from source, you need Rust 1.22 or higher.
Check out the [Release page](https://github.com/sharkdp/bat/releases) for binary builds and Debian packages.
If you want to build to compile `bat` from source, you need Rust 1.22 or higher.
You can then use `cargo` to build everything:
``` bash
cargo install bat
```
### Get themes and syntax highlighting definitions
``` bash
mkdir -p ~/.config/bat/themes
cd ~/.config/bat/themes
git clone https://github.com/jonschlinkert/sublime-monokai-extended