talira

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

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 toolplan not known

Alternatives

The same job

These do what bat does.

  1. delta A syntax-highlighting pager for git, diff, grep, rg --json, and blame output
  2. Less It's CSS, with just a little more
  3. lsd A rewrite of GNU ls with colours, icons, a tree view and git status.
  4. eza A modern alternative to ls

Compare bat with the top 3