bat
CLI>=0.20A cat clone with syntax highlighting and Git integration.
1 views
Installation
Homebrew
brew install batCargo
cargo install batLinks
License
MIT OR Apache-2.0AI Agent Notes
cat with syntax highlighting and line numbers
When to use
Viewing source files with readable syntax coloring
Examples
bat src/main.rsbat --language json data.json
Proven Recipes
View file with syntax highlighting🟢 99% success
bat src/main.tsView file with line numbers🟢 99% success
bat -n file.txtUse bat as pager for git diff🟢 95% success
git diff | bat --language diff