# Install bat-extras with Homebrew, apk, MacPorts, Nix, pacman, zypper

Bash scripts that integrate bat with various command-line tools. Version 2024.08.24 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#bat-extras.

## Install

```sh
sudo av install brew:bat-extras
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install bat-extras
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bat-extras
```

  Evidence: MacPorts ports tree: textproc/bat-extras/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add bat-extras
```

  Evidence: Alpine Linux edge package indexes: bat-extras from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#bat-extras
```

  Evidence: nixpkgs package indexes: bat-extras from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S bat-extras
```

  Evidence: Arch Linux sync databases: bat-extras from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install bat-extras
```

  Evidence: openSUSE Tumbleweed package metadata: bat-extras from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:bat-extras
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/bat-extras>
- **Version:** 2024.08.24
- **Source summary:** Bash scripts that integrate bat with various command-line tools
- **Homepage:** <https://github.com/eth-p/bat-extras>
- **Repository:** <https://github.com/eth-p/bat-extras>
- **Upstream docs:** <https://github.com/eth-p/bat-extras#readme>
- **License:** MIT
- **Source archive:** <https://github.com/eth-p/bat-extras/archive/refs/tags/v2024.08.24.tar.gz>
- **Generated:** 2026-07-26T07:20:29+00:00

## Executables

- bat-modules (cli)
- batdiff (cli)
- batgrep (cli)
- batman (cli)
- batpipe (cli)
- batwatch (cli)
- prettybat (cli)
- bat-modules (alias)
- batdiff (alias)
- batgrep (alias)
- batman (alias)
- batpipe (alias)
- batwatch (alias)
- prettybat (alias)

## Build dependencies

- bat
- shfmt

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-26
- Package-manager version: 2024.08.24
- Local data: ok
- Upstream repository: https://github.com/eth-p/bat-extras
- Upstream latest detected: v2024.08.24 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

bat-extras is a small companion suite for bat: shell scripts that wire bat into common terminal workflows such as ripgrep search, man-page reading, git diffs, file watching, less preprocessing, and pretty-printing.

### Project history

The project grew around bat rather than replacing it. Its README presents bat-extras as Bash scripts that integrate bat with other command-line tools, and lists separate utilities such as batgrep, batman, batpipe, batwatch, batdiff, and prettybat.

The release packaging is intentionally convenience-oriented. The 2024-08-24 GitHub release says it bundles the latest versions of the individual scripts as of that commit and still recommends the README installation instructions for the most up-to-date versions.

### Adoption history

bat-extras is packaged as a single Homebrew formula and is also listed in the input metadata for apk, MacPorts, Nix, pacman, and zypper. The upstream README documents Homebrew and MacPorts installation and also supports installing individual scripts from the maintainer's tap.

The GitHub repository has a modest but real terminal-tool audience, with about 1.6k stars shown on the project page at enrichment time.

### How it is used

Users install the bundle when they already use bat and want it to become the pager or renderer behind adjacent tools: batgrep highlights ripgrep results, batman formats man pages through bat, batdiff displays git-oriented diffs, and batwatch reprints changing files with bat.

The scripts are intentionally glue code. They depend on common CLI tools such as ripgrep, delta, entr, fzf, git, and bat itself where a particular script needs them.

### Why package nerds care

bat-extras is package-nerd catnip because it shows what happens after a modern Unix replacement becomes popular: a small ecosystem of shell adapters appears so the replacement can sit inside search, diff, pager, and documentation flows.

It is also a good packaging edge case because distributions may rename bat itself; bat-extras has build options for alternate executable names so the same scripts can work across package-manager naming quirks.

### Timeline

- 2024: Release v2024.08.24 bundles bat-modules, batdiff, batgrep, batman, batpipe, batwatch, and prettybat from the same commit.
- 2026: Input package metadata lists bat-extras across Homebrew, apk, MacPorts, Nix, pacman, and zypper.

### Related projects

- bat is the required center of the suite.
- ripgrep is used by batgrep, delta can enhance batdiff, and common terminal tools such as man, less, git, fzf, and entr define the workflows bat-extras targets.

### Sources

- <https://github.com/eth-p/bat-extras>
- <https://github.com/eth-p/bat-extras/releases/tag/v2024.08.24>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bat-extras
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - bat-extras: normalized package name match | nixpkgs package indexes: bat-extras from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - bat-extras - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools | https://github.com/eth-p/bat-extras
- apk - bat-extras-batdiff - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-batdiff from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (batdiff) | https://github.com/eth-p/bat-extras
- apk - bat-extras-batgrep - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-batgrep from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (batgrep) | https://github.com/eth-p/bat-extras
- apk - bat-extras-batman - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-batman from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (batman) | https://github.com/eth-p/bat-extras
- apk - bat-extras-batpipe - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-batpipe from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (batpipe) | https://github.com/eth-p/bat-extras
- apk - bat-extras-batwatch - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-batwatch from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (batwatch) | https://github.com/eth-p/bat-extras
- apk - bat-extras-doc - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (documentation) | https://github.com/eth-p/bat-extras
- apk - bat-extras-prettybat - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-prettybat from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (prettybat) | https://github.com/eth-p/bat-extras
- pacman - bat-extras - 2024.08.24-1: normalized package name match | Arch Linux sync databases: bat-extras from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Bash scripts that integrate bat with various command line tools | https://github.com/eth-p/bat-extras
- zypper - bat-extras - 2024.08.24-3.2: normalized package name match | openSUSE Tumbleweed package metadata: bat-extras from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Extra scripts for bat | https://github.com/eth-p/bat-extras
- MacPorts - bat-extras: normalized package name match | MacPorts ports tree: textproc/bat-extras/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [bat](https://www.automicvault.com/pkg/brew/bat/) - Build dependency declared by Homebrew.
- [shfmt](https://www.automicvault.com/pkg/brew/shfmt/) - Build dependency declared by Homebrew.
- [num-utils](https://www.automicvault.com/pkg/brew/num-utils/) - Shares av.db curated category or tags: cli, cli-utilities, developer-tools.
- [argc](https://www.automicvault.com/pkg/brew/argc/) - Shares av.db curated category or tags: bash, cli, developer-tools.
- [babelfish](https://www.automicvault.com/pkg/brew/babelfish/) - Shares av.db curated category or tags: bash, cli, developer-tools.
- [bash-language-server](https://www.automicvault.com/pkg/brew/bash-language-server/) - Shares av.db curated category or tags: bash, cli, developer-tools.
- [bash_unit](https://www.automicvault.com/pkg/brew/bash-unit/) - Shares av.db curated category or tags: bash, cli, developer-tools.
- [bashate](https://www.automicvault.com/pkg/brew/bashate/) - Shares av.db curated category or tags: bash, cli, developer-tools.
- [bashdb](https://www.automicvault.com/pkg/brew/bashdb/) - Shares av.db curated category or tags: bash, cli, developer-tools.
- [has](https://www.automicvault.com/pkg/brew/has/) - Local package facts share a topical domain. Shared terms: bash, cli, command-line, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/bat-extras.yml](https://github.com/automic-vault/db/blob/main/combined/bat-extras.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
