beautysh
« Back to VersTracker
Description:
Bash beautifier
Type: Formula  |  Latest Version: 6.4.2@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: bash shell formatter development productivity
Install: brew install beautysh
About:
beautysh is a command-line utility written in Python that formats and indents bash, zsh, and ksh scripts to improve readability. It analyzes script structure and applies consistent spacing, making code maintenance easier. This tool is particularly useful for standardizing legacy shell scripts or ensuring consistent style across teams.
Key Features:
  • Supports Bash, Zsh, and KornShell scripts
  • Handles complex syntax like conditionals and loops
  • Preserves heredocs and special characters
  • Python-based for cross-platform compatibility
Use Cases:
  • Standardizing formatting in legacy shell scripts
  • Enforcing consistent style guides in team projects
  • Preparing shell scripts for code review or publication
Alternatives:
  • shfmt – beautysh is Python-based and easier to install via pip/Homebrew, while shfmt is a Go binary with stricter formatting rules
  • bashate – bashate focuses on linting and style checking rather than active reformatting of code
License: MIT
Dependencies: python@3.14
Bottles available for: all
Version History
Detected Version Rev Change Commit
Oct 11, 2025 1:05am 0 VERSION_BUMP 28be03e1
Nov 14, 2024 1:28pm 0 VERSION_BUMP f0521c6b