Features
Bugfixes
- Fix for a security vulnerability on Windows. Prior to this release,
batwould execute programs calledless/less.exefrom the current working directory (instead of the one fromPATH) with priority. An attacker might be able to use this by placing a malicious program in a shared directory where the user would executebat.batusers on Windows are advised to upgrade to this version. See #1724 and #1472 (@Ry0taK).
Other
- Add bash completion, see #1678 (@scop)
- Fix Clippy lints, see #1661 (@mohamed-abdelnour)
- Add syntax highlighting test files, see #1213 and #1668 (@mohamed-abdelnour)
Syntaxes
- Upgraded Julia syntax to fix a highlighting bug, see #1692
- Added support for
dashsyntax, see #1654 (@mohamed-abdelnour) - Added support for
XAMLsyntax, see #1590 and #1655 (@mohamed-abdelnour) - Apply
DotENVsyntax also for.env.defaultand.env.defaultsfiles, see #1669
Assets
18
bat-musl_0.18.2_amd64.deb
1.97 MB
bat-musl_0.18.2_i686.deb
2.01 MB
bat_0.18.2_amd64.deb
1.94 MB
bat_0.18.2_arm64.deb
1.76 MB
bat_0.18.2_armhf.deb
1.79 MB
bat_0.18.2_i686.deb
1.99 MB
Bugfixes
- Mouse support and screen clearing broken for
lessversions with minor version number (581.2), see #1629 and #1639 (@aswild)
Other
Input::ordinary_fileandInput::with_namenow acceptPathrather thanOsStrsee #1571 (@matklad)- The
LESSenvironment variable is now included inbat --diagnostic, see #1589 (@Enselic) - Increased min. required Rust version to 1.45
Syntaxes
- Improved the Syslog syntax highlighting, see #1606 (@keith-hall)
- Replaced "Advanced CSV" with a custom CSV syntax definition written especially for
bat; see #1574 (@keith-hall) - Added SystemVerilog file syntax, see #1580 (@SeanMcLoughlin)
- Added Solidity and Vyper syntax, see #1602 (@Ersikan)
New themes
- Dark+ VS Code theme, see #1588 and #1598 (@PatriotRossii)
Assets
18
bat-musl_0.18.1_i686.deb
2.04 MB
bat_0.18.1_amd64.deb
1.96 MB
bat_0.18.1_arm64.deb
1.78 MB
bat_0.18.1_armhf.deb
1.82 MB
bat_0.18.1_i686.deb
2.02 MB
Features
Bugfixes
- If the last line doesn't end with a newline character, don't add it if
--style=plain, see #1438 (@Enselic) - Only print themes hint in interactive mode (
bat --list-themes), see #1439 (@rsteube) - Make ./tests/syntax-tests/regression_test.sh work on recent versions of macOS, see #1443 (@Enselic)
- VimL syntax highlighting fix, see #1450 (@esensar)
- Print an 'Invalid syntax theme settings' error message if a custom theme is broken, see #614 (@Enselic)
- If plain mode is set and wrap is not explicitly opted in, long lines will no be truncated, see #1426
- If
PAGER(but notBAT_PAGERor--pager) ismoreormost, silently uselessinstead to ensure support for colors, see #1063 (@Enselic) - If
PAGERisbat, silently uselessto prevent recursion. ForBAT_PAGERor--pager, exit with error, see #1413 (@Enselic) - Manpage highlighting fix, see #1511 (@keith-hall)
BAT_CONFIG_PATHignored bybatif non-existent, see #1550 (@sharkdp)
Other
- Performance improvements, see #1421 (@LovecraftianHorror)
- Added a new
--diagnosticoption to collect information for bug reports, see #1459 (@sharkdp) - Modified default theme colors to differentiate between a JSON key and a string value, see #1400 (@keith-hall)
- Upped min required Rust version to 1.42
Syntaxes
- Added Zig syntax, see #1470 (@paulsmith)
- Added Lean syntax, see #1446 (@Julian)
- Added
.resourceextension for Robot Framework files, see #1386 - Added
gnuplotsyntax, see #1431 (@sharkdp) - Highlight *.pac (Proxy auto-config) files as JavaScript, see #1515 (@sharkdp)
New themes
ansireplacesansi-darkandansi-light, see #1104 and #1412 (@mk12). Breaking change: users that were previously using one of theansi-*themes should switch toansi.- The Gruvbox theme has been updated, see #1291 (@j0hnmeow). Breaking change: users that were previously using
gruvboxorgruvbox-whiteshould update and usegruvbox-dark/gruvbox-lightinstead.
bat as a library
- The following
PrettyPrintermethods have been removed (they were previously deprecated):input_stdin_with_nameinput_from_bytes_with_nameinput_from_reader_with_namevcs_modification_markers(if thegitfeature is not enabled)
Assets
18
bat-musl_0.18.0_amd64.deb
2.01 MB
bat-musl_0.18.0_i686.deb
2.06 MB
bat_0.18.0_amd64.deb
1.98 MB
bat_0.18.0_arm64.deb
1.8 MB
bat_0.18.0_armhf.deb
1.83 MB
bat_0.18.0_i686.deb
2.04 MB
Bugfixes
- Running
batwithout arguments fails ("output file is also an input"), see #1396
Assets
17
bat-musl_0.17.1_amd64.deb
1.95 MB
bat_0.17.1_amd64.deb
1.94 MB
bat_0.17.1_arm64.deb
1.75 MB
bat_0.17.1_armhf.deb
1.79 MB
bat_0.17.1_i686.deb
1.98 MB
Features
- Added a new
--stylevalue,rule, which adds a simple horizontal ruled line between files, see #1276 (@tommilligan) - Pass
-S("chop long lines") tolessif--wrap=neveris set inbat, see #1255 (@gahag)
Bugfixes
- Detect infinite loop when input and output are the same, see #1193 and #1197 (@niklasmohrin)
- Throw an error when
batis being used aspager, see #1343 (@adrian-rivera) - Bash syntax highlighting not selected for
*.ebuildand*.eclassfiles, see #1292 (@sharkdp) - Fix
zshcompletion when using-p, see #1320 (@xzfc)
Other
- Add note to refer to see detailed help with
--help(and vice versa with-h), see #1215 (@henil) - Add a
Contributorssection toREADME, see #1348 (@adrian-rivera)
Syntaxes
- Manpage syntax highlighting has been improved, see #1315 (@keith-hall)
- Add Svelte file syntax, see #1285 (@kjmph)
New themes
- Coldark, see #1329 (@ArmandPhilippot)
Assets
17
bat-musl_0.17.0_amd64.deb
1.95 MB
bat_0.17.0_amd64.deb
1.94 MB
bat_0.17.0_arm64.deb
1.75 MB
bat_0.17.0_armhf.deb
1.79 MB
bat_0.17.0_i686.deb
1.98 MB
Features
- Added support for the
NO_COLORenvironment variable, see #1021 and #1031 (@eth-p) - Added
-Pshort flag to disable paging, see #1075 and #1082 (@LordFlashmeow) - Added
--force-colorization/-fflag to provide an alias for forced color and decoration output, see #1141 (@alexanderkarlis)
Bugfixes
- Fixed non-printable characters display for redirected output, see #1061 (@gsomix)
- Handle file extension conflicts in
--list-languages, see #1076 and #1135 (@Kienyew)
Other
- Switched to "·" (U+00B7) Middle Dot from "•" (U+2022) Bullet for non-printing spaces, see #1056 and #1100 (@LordFlashmeow)
- Added zsh shell completion script, see #1136 (@Kienyew)
- Improved
--helptext (@sharkdp) - Added custom languages/themes sections to manpage (@eth-p)
Syntaxes
- Update AsciiDoc syntax, see #1034 (@rxt1077)
- GLSL (@caioalonso)
- Add Nginx and Apache config file syntax, see #1137 (@kjmph, @niklasmohrin)
- Use
fstabsyntax forcrypttabfiles, see #1073 (@sharkdp) - Support syntax highlighting for files in
$XDG_CONFIG_HOME/git/, see #1191 (@ahmedelgabri)
New themes
- Gruvbox, see #1069 (@KyleOndy)
- base16-256 for base16-shell users, see #1111 (@mk12)
bat as a library
- Add APIs to provide
Inputdescriptions withInputDescription(@eth-p) - Add function to directly provide
Inputs toPrettyPrinter(@eth-p) - Breaking:
Input::theme_preview_fileis no longer available. (@eth-p)
Packaging
- Package maintainers: note that we now include zsh shell completion files
- Removed build dependency on
liquid(@sharkdp).
Thanks
Special thanks to @rivy for porting our CI/CD workflows to Github Actions. Also, many thanks to @Kienyew and @eth-p for major contributions!
Assets
17
bat-musl_0.16.0_amd64.deb
1.93 MB
bat-musl_0.16.0_i686.deb
1.99 MB
bat_0.16.0_amd64.deb
1.93 MB
bat_0.16.0_arm64.deb
1.74 MB
bat_0.16.0_armhf.deb
1.76 MB
bat_0.16.0_i686.deb
1.97 MB
Bugfixes
Assets
14
bat-musl_0.15.4_amd64.deb
1.92 MB
bat_0.15.4_amd64.deb
1.87 MB
bat_0.15.4_arm64.deb
1.71 MB
bat_0.15.4_armhf.deb
1.73 MB
bat_0.15.4_i386.deb
1.93 MB
Bugfixes
- Cannot run
batwith relative paths, see #1022 - bat mishighlights Users that start with digits in SSH config, see #984
New syntaxes
Other
- Some syntaxes and themes have been updated to the latest version
Assets
14
bat-musl_0.15.3_amd64.deb
1.92 MB
bat_0.15.3_amd64.deb
1.88 MB
bat_0.15.3_arm64.deb
1.72 MB
bat_0.15.3_armhf.deb
1.74 MB
bat_0.15.3_i386.deb
1.94 MB
Warning: this release suffers from #1022. bat will panic when called with a relative file path.
Bugfixes
--map-syntaxdoesn't work with names provided through--file-name(@eth-p)- Fix syntax detection for files called 'rails', see #1008
- Fix potential errors with syntax detection for symlinked files, see #1001
Other
- Add padding above headers when not using a grid, see #968 and #981 (@pt2121)
- bat now prints an error if an invalid syntax is specified via
-lor--map-syntax, see #1004 (@eth-p)
bat as a library
PrettyPrinter::vcs_modification_markershas been marked deprecated when building without thegitfeature, see #997 and #1020 (@eth-p, @sharkdp)
Packaging
- Compilation problems with
onig_syson various platforms have been resolved by upgrading tosyntect 4.2, which includes a newonigversion that allows to buildonig_syswithout thebindgendependency. This removes the need forlibclang(-dev)to be installed to compilebat. Package maintainers might want to removeclangas a build dependency. See #650 for more details.
Assets
14
bat-musl_0.15.2_amd64.deb
1.92 MB
bat_0.15.2_amd64.deb
1.88 MB
bat_0.15.2_arm64.deb
1.71 MB
bat_0.15.2_armhf.deb
1.74 MB
bat_0.15.2_i386.deb
1.93 MB
Bugfixes
- Fix highlighting of Markdown files, see #963 and #977
- Fix
base16theme (was broken since in v0.14), see #972, #934 and #979 (@mk12).
Users suffering from #865 ("no color for bat in ssh from a Windows client") can use theansi-darkandansi-lightthemes from now on.
New syntaxes
- Fortran, see #957
- Email (@mariozaizar)
- QML, see #962 (@pylipp)
Assets
14
bat-musl_0.15.1_amd64.deb
1.92 MB
bat_0.15.1_amd64.deb
1.87 MB
bat_0.15.1_arm64.deb
1.71 MB
bat_0.15.1_armhf.deb
1.73 MB
bat_0.15.1_i386.deb
1.93 MB
PreviousNext