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

Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
5be2e85568 build(deps): bump assets/syntaxes/02_Extra/Slim
Bumps [assets/syntaxes/02_Extra/Slim](https://github.com/slim-template/ruby-slim.tmbundle) from `3b1441f` to `cad0268`.
- [Commits](3b1441f89f...cad02689b6)

---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/Slim
  dependency-version: cad02689b6c6e03d67dab8eaadb22cf0fd3b436b
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-01 06:05:28 +00: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@v5
- uses: actions/checkout@v4
- 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: