Extras

github.com/eth-p/bat-extras Web Development Open-source projectOpen source

Extend the bat command-line viewer with scripts for searching files and reading manual pages.

github.com/eth-p/bat-extras
Extras homepage screenshot

About Extras

bat-extras is a set of Bash scripts that integrate bat with command line tools. It includes batgrep for searching files with ripgrep, batman for reading manual pages, batpipe for viewing more file types, batwatch for watching file changes, batdiff for comparing files and git index state, and prettybat for pretty-printing source code.

Some scripts require additional tools such as ripgrep, entr, or delta. The scripts can be symlinked from src or built into self-contained files with build.sh, with installs available via Homebrew, MacPorts, Arch, Gentoo, and an unofficial Fedora package that omits prettybat.

Key features

  • Search and highlight files using ripgrep via batgrep
  • Read system manual pages using bat via batman
  • Preprocess files for viewing in less via batpipe
  • Watch files for changes and print with bat via batwatch
  • Diff file against git index or between files via batdiff
  • Pretty-print source code with bat highlighting via prettybat
Best for: Terminal users of bat who need scripts for searching, manual pages, diffs, and file monitoring.
Good for
  • Scripts can run as-is by symlinking or be built as self-contained files
  • Installable through Homebrew, MacPorts, Arch, Gentoo, and Fedora Copr
  • Build script supports minification and alternate executable names
Watch out for
  • Some scripts need external tools such as ripgrep, entr, or delta
  • Unofficial Fedora package does not contain prettybat
  • Generated man pages are beta with no guarantee of quality

Extras at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Platforms
macOS
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

Extras alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 14 alternatives

Composer

github.com/composer/composer

Manage dependencies for PHP projects with Composer, which lets developers declare, install, and update packages.

Open source
13 alternatives

Globster

globster.xyz

Test and visualize the results of glob patterns with Globster, an online pattern tester.

Popular in Web Development

Well-known listings from the same topic.

All 122

Extras FAQ

How can I install only specific scripts with Homebrew?
Use the eth-p/software tap to install individual scripts with brew install eth-p/software/bat-extras-[SCRIPT].
How can I use the scripts without a package manager?
Symlink src/[script].sh to a local bin folder, or use build.sh to create self-contained scripts in the bin folder.
What if bat is renamed on my distribution?
Build the scripts with the --alternate-executable=NAME option to use the alternate executable name.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing