A cat(1) clone with wings.
open sourceApache-2.0self-hostablefree
bat is a cat replacement with syntax highlighting for many languages, git integration that marks modified lines, display of non-printable characters, and automatic paging. When piped it behaves like plain cat, so it can be aliased safely.
Ways to install
Package managers
Problems it solves
- reading source files with cat in the terminal is a wall of uncolored text
- want syntax highlighting when I print a file to the terminal
- see which lines in a file changed versus git while viewing it
- cat output scrolls off screen, I want automatic paging
- show hidden characters like tabs and carriage returns in a file
- colorize the preview pane in my fuzzy finder
- nicer man pages and help output with colors
- line numbers when dumping a file to the console
Features
- syntax highlighting
- git modification markers
- automatic paging
- show non-printable characters
- themes
- plain cat behaviour when piped
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what bat does.
