shfmt

Formatterby Tori @gettoriApache-2.0Bundled
Verified against
shfmt v3.14.1Measured Sep 21, 2026
Platforms
macOS, Linux, Windows
Install
Uses the one on your PATH
Needs Tori
26.1009.0 or newer
Schema
Version 1
Id
shfmt
Source file
formatters/shfmt.toml ↗gettori/packs on GitHub

Add it in Tori

  1. Open Settings with the gear in the title bar.
  2. Go to Formatters.
  3. shfmt is already there: it ships inside Tori. When the catalog has a newer version, Add a formatter lists it with Update.

Adding writes one file and runs nothing. Tori runs the one already on your PATH.

Use it without the catalog

Download the file and drop it in the folder below. Tori loads it the next time it starts.

Download file shfmt.toml
~/.config/tori/packs/formatters/

The file

shfmt.tomlRead only
1# shfmt, from the login PATH. See FORMATTERS.md.2#3# No markers: shfmt reads .editorconfig, which says nothing about whether a4# repo uses shfmt. It runs only when `format.byExtension` names it.56schema_version = 17id = "shfmt"8label = "shfmt"9description = "Format shell scripts with shfmt"10license = "Apache-2.0"11contributor = { name = "Tori", github = "gettori" }12extensions = ["sh", "bash"]1314verified_against = "shfmt v3.14.1"15verified_on = "2026-09-21"1617[launch]18kind = "path"19program = "shfmt"20# `--filename` is what picks the dialect and the .editorconfig section.21args = ["--filename", "{file}"]