Built bysharkdp

bat

A cat(1) clone with wings.

60.3k stars1.6k forks239 watchers327 open issuesRustApache-2.0

TL;DR · 30-second scan

What it is

bat (Rust) — A cat(1) clone with wings.

What it does for you

You read code and config files in the terminal and want highlighting without opening an editor.

Best for

CLI & Dev Tools

60.3k GitHub starsLicense: Apache-2.0Last updated 1 month ago
EDITOR'S DEEP TAKE

A replacement for cat with syntax highlighting, git change markers in the gutter, line numbers and automatic paging. It is a small tool that improves a thing you do fifty times a day, which is a better return than most large tools. Rust, Apache-2.0, from the author of fd and hyperfine, so the quality bar is consistent. The tradeoff is that it is not a drop-in replacement despite looking like one: it detects when output is piped and behaves like cat then, but aliasing cat to bat will still surprise scripts and other people on shared machines. Alias it to something else, or accept the occasional confusion.

Use this if

You read code and config files in the terminal and want highlighting without opening an editor.

Skip if

You need cat's exact behaviour in scripts, or you cannot install extra binaries on the machines you use.

Categories
Topics
command-linetoolsyntax-highlightinggitterminalclirusthacktoberfest
Maintainer? Embed our badge

Add this badge to your README to show your project is curated on StackPicks. Free, lightweight (180×28 SVG), and gives your visitors a one-click way to see honest take + alternatives.

Preview
Featured on StackPicks
Markdown (for GitHub README)
[![Featured on StackPicks](https://stackpicks.dev/api/badge/sharkdp-bat)](https://stackpicks.dev/repo/sharkdp-bat)
HTML (for blogs / docs)
<a href="https://stackpicks.dev/repo/sharkdp-bat"><img src="https://stackpicks.dev/api/badge/sharkdp-bat" alt="Featured on StackPicks" width="180" height="28" /></a>

Are you the maintainer of sharkdp/bat? Add the badge and we'll feature your project in the weekly curator newsletter.

Created 21 Apr 2018
Last push 1 month ago
Stats refreshed 1 month ago