⌕
BT

bat 0.26.1

带语法高亮的 cat 替代品。

绿色版WindowsMIT / Apache-2.0
发布 2025-12-02 · 核验 2026-11-15
立即下载

软件简介

bat 在终端里查看文件时自动语法高亮、显示行号和 Git 改动。

功能特点

  • 语法高亮
  • 行号与 Git 标记
  • 自动分页
  • 单文件
更新日志 · 0.26.1

v0.26.1

Features

  • Add paging to '-h' and '--help' see PR #3478 (@MuntasirSZN)

Bugfixes

  • Fix hang when using --list-themes with an explicit pager, see #3457 (@abhinavcool42)
  • Fix negative values of N not being parsed in <N:M> line ranges without = flag value separator, see #3442 (@lmmx)
  • Fix broken Docker syntax preventing use of custom assets, see #3476 (@keith-hall)
  • Fix decorations being applied unexpectedly when piping. Now only line numbers explicitly required on the command line should be applied in auto decorations mode for cat compatibility. See #3496 (@keith-hall)
  • Fix diagnostics attempting to find the version of an executable named builtin when builtin pager is used. See #3498 (@keith-hall)
  • --help now correctly reads the config file for theme information etc. See #3507 (@keith-hall)

Other

  • Improve README documentation on pager options passed to less, see #3443 (@injust)
  • Make PowerShell completions compatible with PowerShell v5.1, see #3495 (@keith-hall)
  • Use more robust approach to escaping in Bash completions, see #3448 (@akinomyoga)

Syntaxes

  • Update quadlet syntax mapping to include *.{build,pod} files #3484 (@cyqsimon)
  • Fix inconsistencies in Ada syntax, see #3481 (@AldanTanneo)
  • Add syntax mapping for podman's artifact quadlet files, see #3497 (@xduugu)
  • Highlight Korn Shell scripts (i.e. with a shebang of ...ksh) using Bash syntax, see #3509 (@keith-hall)

下载地址

官方下载直接指向软件作者的发布地址;网盘镜像为同一文件的转存,下载后可用 SHA-256 核对(官方未提供校验值的文件除外)。

  • Windows x64 · 绿色版 ZIP 绿色免安装bat-v0.26.1-x86_64-pc-windows-msvc.zip · 3.4 MB

相关推荐