b
Install via:brewcargo
License:MITApache-2.0
Open source

bat

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, batwatch companion tools.
  • Drop-in cat replacement with alias 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.

Install

Copy and run one of these commands locally to install bat.

brew install bat

Comments (0)

Share your thoughts about this entry... Sign in to comment
No comments yet — start the conversation.