mirror of
https://github.com/sharkdp/bat
synced 2026-08-03 18:51:44 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ed09a80a73 | |||
| 802540ea08 | |||
| dbf84e77e0 | |||
| 8f18567f2d | |||
| e4d7e004ee | |||
| 51b57ccdb7 | |||
| 25f83610f9 |
@@ -25,6 +25,8 @@ addons:
|
|||||||
- gcc-multilib
|
- gcc-multilib
|
||||||
# needed to build deb packages
|
# needed to build deb packages
|
||||||
- fakeroot
|
- fakeroot
|
||||||
|
# use openssl-variant of libcurl
|
||||||
|
- libcurl4-openssl-dev
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
@@ -42,6 +44,9 @@ script:
|
|||||||
# Incorporate TARGET env var to the build and test process
|
# Incorporate TARGET env var to the build and test process
|
||||||
- cargo build --target $TARGET --verbose
|
- cargo build --target $TARGET --verbose
|
||||||
- cargo test --target $TARGET --verbose
|
- cargo test --target $TARGET --verbose
|
||||||
|
# Run 'bat' on its own source code and the README
|
||||||
|
- cargo run --target $TARGET -- src/main.rs
|
||||||
|
- cargo run --target $TARGET -- README.md
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- bash ci/before_deploy.bash
|
- bash ci/before_deploy.bash
|
||||||
|
|||||||
Generated
+1
-2
@@ -61,11 +61,10 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bat"
|
name = "bat"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"atty 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
"atty 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"bincode 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
||||||
"clap 2.31.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"clap 2.31.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"console 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"console 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"directories 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"directories 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|||||||
+1
-2
@@ -7,12 +7,11 @@ license = "MIT/Apache-2.0"
|
|||||||
name = "bat"
|
name = "bat"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/sharkdp/bat"
|
repository = "https://github.com/sharkdp/bat"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
atty = "0.2.2"
|
atty = "0.2.2"
|
||||||
ansi_term = "0.9"
|
ansi_term = "0.9"
|
||||||
bincode = "1.0"
|
|
||||||
console = "0.6"
|
console = "0.6"
|
||||||
git2 = "0.6"
|
git2 = "0.6"
|
||||||
error-chain = "0.11"
|
error-chain = "0.11"
|
||||||
|
|||||||
@@ -23,6 +23,16 @@ A *cat(1)* clone with syntax highlighting and Git integration.
|
|||||||
|
|
||||||
Check out the [Release page](https://github.com/sharkdp/bat/releases) for binary builds and Debian packages.
|
Check out the [Release page](https://github.com/sharkdp/bat/releases) for binary builds and Debian packages.
|
||||||
|
|
||||||
|
### Arch Linux
|
||||||
|
|
||||||
|
On Arch Linux, you can install [the AUR package](https://aur.archlinux.org/packages/bat/) via yaourt, or manually:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://aur.archlinux.org/bat.git
|
||||||
|
cd bat
|
||||||
|
makepkg -si
|
||||||
|
```
|
||||||
|
|
||||||
### From source
|
### From source
|
||||||
|
|
||||||
If you want to build to compile `bat` from source, you need Rust 1.22 or higher.
|
If you want to build to compile `bat` from source, you need Rust 1.22 or higher.
|
||||||
@@ -35,7 +45,7 @@ cargo install bat
|
|||||||
|
|
||||||
## Customization
|
## Customization
|
||||||
|
|
||||||
`bat` uses the excellent [`syntect`](https://github.com/trishume/syntect/) library for syntax highlighting. `syntect` can read any Sublime Text language definition and theme.
|
`bat` uses the excellent [`syntect`](https://github.com/trishume/syntect/) library for syntax highlighting. `syntect` can read any [Sublime Text `.sublime-syntax` files](https://www.sublimetext.com/docs/3/syntax.html) and themes.
|
||||||
|
|
||||||
To build your own language-set and theme, follow these steps:
|
To build your own language-set and theme, follow these steps:
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user