bat

CLI>=0.20

A cat clone with syntax highlighting and Git integration.

1 views

Installation

Homebrewbrew install bat
Cargocargo install bat

Links

License

MIT OR Apache-2.0

AI Agent Notes

cat with syntax highlighting and line numbers

When to use

Viewing source files with readable syntax coloring

Examples
  • bat src/main.rs
  • bat --language json data.json

Proven Recipes

View file with syntax highlighting🟢 99% success
bat src/main.ts
View file with line numbers🟢 99% success
bat -n file.txt
Use bat as pager for git diff🟢 95% success
git diff | bat --language diff