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

Compare commits

..

2 Commits

Author SHA1 Message Date
dependabot[bot]
b4dcc155f0 build(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-01 19:23:43 +02:00
Sander
f754f43e84 docs: fix command examples
its anoying to copy with the `>` in there
2025-09-01 18:53:15 +02:00
3 changed files with 7 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ jobs:
PR_NUMBER: ${{ github.event.number }}
PR_BASE: ${{ github.base_ref }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Fetch PR base
run: git fetch --no-tags --prune --depth=1 origin

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
```bash
> bat README.md
bat README.md
```
Display multiple files at once
```bash
> bat src/*.rs
bat src/*.rs
```
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`)
```bash
> curl -s https://sh.rustup.rs | bat
curl -s https://sh.rustup.rs | bat
```
Read from stdin, specify the language explicitly
```bash
> yaml2json .travis.yml | json_pp | bat -l json
yaml2json .travis.yml | json_pp | bat -l json
```
Show and highlight non-printable characters:
```bash
> bat -A /etc/hosts
bat -A /etc/hosts
```
Use it as a `cat` replacement: