# 使用 Homebrew, Nix 安装 beautysh

查看 beautysh 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:beautysh
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install beautysh
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#beautysh
```

  证据: nixpkgs package indexes: beautysh from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

## 软件包事实

- **软件包键:** brew:beautysh
- **软件包管理器:** Homebrew
- **版本:** 6.4.3
- **来源摘要:** Bash beautifier
- **主页:** <https://github.com/lovesegfault/beautysh>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- beautysh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 6.4.3
## 项目历史与用法

beautysh is a Bash beautifier and formatter that can rewrite shell scripts from the command line or through its Python API.

### 项目历史

The README frames beautysh around the difficulty of formatting Bash safely because shell syntax is ambiguous and keywords can also appear as variable names. The project chooses a pragmatic formatter rather than trying to reimplement the Bash interpreter.

The official repository was created in 2016, and the GitHub releases show continued maintenance from early Python-package releases through 2025 and 2026 releases.

### 采用历史

beautysh is distributed through Python packaging and Nix according to its README, and through Homebrew and Nix according to the supplied package metadata.

### 使用方式

Users run beautysh over one or more shell files, optionally with flags for indentation, backup behavior, check mode, function style, and variable style. The README warns that it overwrites submitted files, so backups matter.

Configuration is documented through command-line arguments first, then a [tool.beautysh] section in pyproject.toml, then EditorConfig settings in .editorconfig.

### 为什么软件包爱好者会关心

beautysh is a small packaging-friendly formatter: one command, local config files, and enough caution around Bash edge cases to be useful in editor, CI, or pre-commit style workflows.

### 时间线

- 2016: The official GitHub repository for beautysh was created.
- 2018: The GitHub releases include a 3.11 release named for relicensing to MIT.
- 2019: The GitHub releases show 5.x releases.
- 2025-2026: The GitHub releases show active 6.x maintenance.

### Related projects

- Bash is the language being formatted. EditorConfig is related because beautysh reads indentation settings from .editorconfig, and PyPI/Nix are documented installation routes.

### 来源

- <https://github.com/lovesegfault/beautysh#readme>
- <https://github.com/lovesegfault/beautysh/releases>
- input.json source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: pyproject.toml, .editorconfig
## 其他软件包管理器记录

- Nix - beautysh: normalized package name match | nixpkgs package indexes: beautysh from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix


## Combined YAML source

View the package source record on GitHub. [combined/beautysh.yml](https://github.com/mxcl/pkgdb/blob/main/combined/beautysh.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
