mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-03 04:08:50 +01:00
Add Docker instructions, closes #331
This commit is contained in:
parent
1891e194b5
commit
897b9e7030
62
README.md
62
README.md
@ -120,6 +120,41 @@ cd /usr/ports/textproc/bat
|
|||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Via nix
|
||||||
|
|
||||||
|
You can install `bat` using the [nix package manager](https://nixos.org/nix):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nix-env -i bat
|
||||||
|
```
|
||||||
|
|
||||||
|
### On macOS
|
||||||
|
|
||||||
|
You can install `bat` with [Homebrew](http://braumeister.org/formula/bat):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
brew install bat
|
||||||
|
```
|
||||||
|
|
||||||
|
### On Windows
|
||||||
|
|
||||||
|
You can download prebuilt binaries from the [Release page](https://github.com/sharkdp/bat/releases),
|
||||||
|
or install it with [scoop](https://scoop.sh/):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
scoop install bat
|
||||||
|
```
|
||||||
|
|
||||||
|
[See below](#using-bat-on-windows) for notes.
|
||||||
|
|
||||||
|
### Via Docker
|
||||||
|
|
||||||
|
There is a [Docker image](https://hub.docker.com/r/danlynn/bat/) that you can use to run `bat` in a container:
|
||||||
|
```bash
|
||||||
|
docker pull danlynn/bat
|
||||||
|
alias bat='docker run -it --rm -e BAT_THEME -v "$(pwd):/myapp" danlynn/bat'
|
||||||
|
```
|
||||||
|
|
||||||
### Via Ansible
|
### Via Ansible
|
||||||
|
|
||||||
You can install `bat` with [Ansible](https://www.ansible.com/):
|
You can install `bat` with [Ansible](https://www.ansible.com/):
|
||||||
@ -148,33 +183,6 @@ This should work with the following distributions:
|
|||||||
- FreeBSD
|
- FreeBSD
|
||||||
- MacOS
|
- MacOS
|
||||||
|
|
||||||
### Via nix
|
|
||||||
|
|
||||||
You can install `bat` using the [nix package manager](https://nixos.org/nix):
|
|
||||||
|
|
||||||
```bash
|
|
||||||
nix-env -i bat
|
|
||||||
```
|
|
||||||
|
|
||||||
### On macOS
|
|
||||||
|
|
||||||
You can install `bat` with [Homebrew](http://braumeister.org/formula/bat):
|
|
||||||
|
|
||||||
```bash
|
|
||||||
brew install bat
|
|
||||||
```
|
|
||||||
|
|
||||||
### On Windows
|
|
||||||
|
|
||||||
You can download prebuilt binaries from the [Release page](https://github.com/sharkdp/bat/releases),
|
|
||||||
or install it with [scoop](https://scoop.sh/):
|
|
||||||
|
|
||||||
```bash
|
|
||||||
scoop install bat
|
|
||||||
```
|
|
||||||
|
|
||||||
[See below](#using-bat-on-windows) for notes.
|
|
||||||
|
|
||||||
### From binaries
|
### From binaries
|
||||||
|
|
||||||
Check out the [Release page](https://github.com/sharkdp/bat/releases) for
|
Check out the [Release page](https://github.com/sharkdp/bat/releases) for
|
||||||
|
Loading…
Reference in New Issue
Block a user