bat

Install command:
brew install bat

Clone of cat(1) with syntax highlighting and Git integration

https://github.com/sharkdp/bat

License: Apache-2.0 OR MIT

Development: Pull requests

Formula JSON API: /api/formula/bat.json

Formula code: bat.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
macOS on
Intel
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 0.26.1
head ⚡️ HEAD

Depends on:

libgit2 1.9.7 C library of Git core methods that is re-entrant and linkable
oniguruma 6.9.10 Regular expressions library

Depends on when building from source:

pkgconf 3.0.10 Package compiler and linker metadata toolkit
rust 1.99.1 Safe, concurrent, practical language

Binaries: bat

GitHub Packages downloads:

Last 30 days68,657
Downloads3,367,334
Analytics install events (30 days)16,921
Downloads / install events (30 days)4.1×

Source: GitHub Packages, fetched 2026-11-01T00:48:01Z. Analytics dates: 2026-10-02 to 2026-11-01. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs16,90635,701194,297
Installs (--HEAD)1534236
Installs on Request16,87835,637193,696
Installs on Request (--HEAD)1534236
Build Errors (--HEAD)2
Build Errors1