Add it in Tori
- Open Settings with the gear in the title bar.
- Go to Formatters.
- 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}"]