bat is a command-line program that prints the contents of files to the terminal, with syntax highlighting and line numbers. It works as a replacement for the Unix cat command, so developers and sysadmins who read code or config files in a shell can use it in the same way.
It is written in Rust and runs from the command line on the platforms listed in its project data. The source code is public under the Apache-2.0 license, and it is free to use and modify. Its tags point to git integration, which marks changed lines in the output.
Alternatives to bat
Products that do a similar job in Developer Tools.
Warp
Terminal application rebuilt as a development environment
delta
syntax-highlighting pager for git, diff, blame and grep output
gitui
Keyboard-driven terminal interface for git repositories
Rio
GPU-accelerated terminal emulator for macOS
onefetch
Command-line tool that shows a summary of a Git repository
Windows Terminal
Command-line terminal app and console host for Windows
fzf
Command-line fuzzy finder for lists of files, history and any text
lazygit
Terminal UI for running git commands with keyboard shortcuts