talira

Compare

shfmtpretty-quick
What it isShell script formatter, with a Go shell parser and interpreter library (mvdan/sh)Runs Prettier on only the files you changed, with a pre-commit mode
KindOpen sourceOpen source
Trust0.690.30
Stars92292291
Last commit2026-11-252025-06-03
LicenceBSD-3-ClauseMIT
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostable——
Ways to run it——
SOC 2——
HIPAA——
SSO——
API——
Plugins——
MCP server——
CompanyDaniel MartíPrettier
Features
  • Formats POSIX Shell, Bash, Zsh and mksh scripts
  • Converts between shell and a JSON syntax tree
  • Go parser that builds a shell syntax tree
  • Interpreter that runs scripts without a system shell, including on Windows
  • Shell-style word splitting, quoting, expansion and globbing in Go
  • Docker images with Alpine variants
  • Editor integrations for VS Code, JetBrains IDEs, Vim, Emacs and Prettier
  • runs Prettier on changed files only
  • --staged pre-commit mode that formats and re-stages staged files
  • compare changes with a branch
  • filter files with glob patterns
  • Git and Mercurial
Limitations
  • The formatter cannot be turned off for ranges of lines
  • Does not support the $(( and (( ambiguity; space the operands
  • Subshells in the interpreter run as goroutines, so real PIDs and file descriptors cannot be used
  • Partially staged files aren't re-staged in --staged mode; it exits non-zero so the commit stops.