b
Install via:brewcargo
License:MITApache-2.0
Open sourcebat
About
A `cat` clone with wings — syntax highlighting, git integration and line numbers. Preview files in style, and search code with `batgrep`.
Pricing
Free
bat is a modern replacement for cat that adds syntax highlighting, line numbers and git diffs to file previews. It handles paging automatically and themes your terminal output.
Key Features
- Syntax highlighting for 100+ languages.
- Line numbers and git modifications.
- Smart paging for long files.
- Theme system (solarized, gruvbox, …).
batgrep,batdiff,batwatchcompanion tools.- Drop-in
catreplacement withalias cat=bat.
Pricing
bat is free and open source under MIT and Apache-2.0.
Getting Started
brew install bat
bat package.json
bat --paging=never longfile.ts
Add alias cat=bat to your shell config to make it your default viewer.