1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-02 11:22:30 +01:00

docs: fix command examples

its anoying to copy with the `>` in there
This commit is contained in:
Sander
2025-09-01 16:39:43 +02:00
committed by Martin Nordholts
parent d291b3e5fa
commit f754f43e84

View File

@@ -76,13 +76,13 @@ Whenever `bat` detects a non-interactive terminal (i.e. when you pipe into anoth
Display a single file on the terminal Display a single file on the terminal
```bash ```bash
> bat README.md bat README.md
``` ```
Display multiple files at once Display multiple files at once
```bash ```bash
> bat src/*.rs bat src/*.rs
``` ```
Read from stdin, determine the syntax automatically (note, highlighting will Read from stdin, determine the syntax automatically (note, highlighting will
@@ -90,18 +90,18 @@ only work if the syntax can be determined from the first line of the file,
usually through a shebang such as `#!/bin/sh`) usually through a shebang such as `#!/bin/sh`)
```bash ```bash
> curl -s https://sh.rustup.rs | bat curl -s https://sh.rustup.rs | bat
``` ```
Read from stdin, specify the language explicitly Read from stdin, specify the language explicitly
```bash ```bash
> yaml2json .travis.yml | json_pp | bat -l json yaml2json .travis.yml | json_pp | bat -l json
``` ```
Show and highlight non-printable characters: Show and highlight non-printable characters:
```bash ```bash
> bat -A /etc/hosts bat -A /etc/hosts
``` ```
Use it as a `cat` replacement: Use it as a `cat` replacement: