macOS
brew install bat-extrasprovider-native install command
安装
brew install bat-extrasprovider-native install command
概览
Bash scripts that integrate bat with various command-line tools
历史
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.
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.
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.
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.
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
bat-modules | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
batdiff | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
batgrep | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
batman | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
batpipe | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
batwatch | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
prettybat | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:bat-extras |
|---|---|
| 版本 | 2024.08.24 |
| 软件包管理器 | Homebrew |
| 主页 | https://github.com/eth-p/bat-extras |
| 仓库 | https://github.com/eth-p/bat-extras |
| Bottle | 未记录 |
| 服务 | 未声明 |
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.