finds.dev

sharkdp/bat

A cat(1) clone with wings.

View on GitHub

★ 59,317RustApache-2.0updated Jun 2026

// the take

bat is a cat replacement written in Rust that adds syntax highlighting, line numbers, Git diff markers, and automatic paging. It's designed as a drop-in for cat — when piped, it strips decorations and behaves exactly like cat. For anyone who spends time reading files in a terminal, it's the obvious upgrade.

The Git integration is genuinely useful: modified lines show up in the sidebar without any configuration, so you see diffs inline as you read. The automatic pager fallback is well-thought-out — bat detects non-interactive terminals and silently degrades to plain output, meaning you can alias it without breaking scripts. The syntax definition system builds on syntect and Sublime Text .sublime-syntax files, giving it a large, maintainable language library without reimplementing a parser. The `--line-range` flag and fzf integration work exactly as you'd want for previewing search results in large files.

The batcat vs bat naming mess on older Debian/Ubuntu is a real annoyance — it's been a known issue for years and still requires a manual symlink workaround rather than being fixed at the package level. The library API is available but under-documented for embedding use cases; the README mentions it, then points to docs.rs and leaves you there. Custom themes are stuck on the legacy .tmTheme format — newer .sublime-color-scheme files aren't supported, which means you can't use most modern Sublime themes directly. Encoding support stops at UTF-8 and UTF-16; anything else requires a manual iconv step with no built-in fallback.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
59,317
Forks
1,567
Language
Rust
License
Apache-2.0
Last commit
17 Jun 2026

// nearby

If bat isn't quite it.

All repos →