# 使用 Homebrew, MacPorts, Nix 安装 smug

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

## 安装

```sh
sudo av install brew:smug
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install smug
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install smug
```

  证据: MacPorts ports tree: sysutils/smug/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#smug
```

  证据: nixpkgs package indexes: pkgs/by-name/sm/smug/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:smug
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/smug>
- **版本:** 0.3.19
- **来源摘要:** Automate your tmux workflow
- **主页:** <https://github.com/ivaaaan/smug>
- **仓库:** <https://github.com/ivaaaan/smug>
- **许可证:** MIT
- **源码归档:** <https://github.com/ivaaaan/smug/archive/refs/tags/v0.3.19.tar.gz>
- **最后更新:** 2026-07-26T04:03:42+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- smug (cli)
- smug (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.3.19
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/ivaaaan/smug
- 检测到的最新版本: v0.3.19 (当前)
## 项目历史与用法

Smug is a Go command-line session manager and task runner for tmux, aimed at starting a terminal development environment from one YAML configuration.

### 项目历史

The official repository was created in December 2020, and its first GitHub release, v0.1.0, was published two days later. The README describes it as inspired by tmuxinator and tmuxp, placing it in the long-running tmux session-manager niche.

### 采用历史

Smug is packaged for Homebrew, MacPorts, Nix, and Arch AUR according to the official README and supplied package metadata, which makes it a small but broadly discoverable terminal-workflow utility.

### 使用方式

Users define windows, panes, roots, hooks, and commands in YAML files under ~/.config/smug or in a project .smug.yml, then run commands such as smug start, smug stop, or smug <project>.

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

Package maintainers care about Smug because it is a compact Go CLI with release binaries and a familiar Homebrew-style install path, filling the same ergonomic space as tmuxinator/tmuxp without a Ruby or Python runtime.

### 时间线

- 2020: Official GitHub repository created.
- 2020: v0.1.0 published on GitHub releases.
- 2026: Official README lists Homebrew and MacPorts installation paths.

### Related projects

- tmux
- tmuxinator
- tmuxp

### 来源

- <https://api.github.com/repos/ivaaaan/smug>
- <https://api.github.com/repos/ivaaaan/smug/releases>
- <https://github.com/ivaaaan/smug>
- input 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: ~/.config/smug/*.yml, .smug.yml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** smug
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Nix - smug: normalized package name match | nixpkgs package indexes: pkgs/by-name/sm/smug/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - smug: normalized package name match | MacPorts ports tree: sysutils/smug/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [tmux](https://pkg.so/zh-hans/brew/tmux/) - Shares pkgdb curated category or tags: cli, productivity, sessions, terminal.
- [superfile](https://pkg.so/zh-hans/brew/superfile/) - Shares pkgdb curated category or tags: cli, go, productivity, terminal.
- [lf](https://pkg.so/zh-hans/brew/lf/) - Shares pkgdb curated category or tags: cli, go, productivity, terminal.
- [byobu](https://pkg.so/zh-hans/brew/byobu/) - Shares pkgdb curated category or tags: cli, productivity, terminal, tmux.
- [harsh](https://pkg.so/zh-hans/brew/harsh/) - Shares pkgdb curated category or tags: cli, go, productivity, terminal.
- [countdown](https://pkg.so/zh-hans/brew/countdown/) - Shares pkgdb curated category or tags: cli, go, productivity, terminal.
- [stormy](https://pkg.so/zh-hans/brew/stormy/) - Shares pkgdb curated category or tags: cli, go, productivity, terminal.
- [typtea](https://pkg.so/zh-hans/brew/typtea/) - Shares pkgdb curated category or tags: cli, go, productivity, terminal.

## Combined YAML source

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


## 来源

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