# 使用 Homebrew, apk, MacPorts, Nix, pacman 安装 zsh-completions

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

## 安装

```sh
sudo av install brew:zsh-completions
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zsh-completions
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install zsh-completions
```

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

### Linux

- apk (92%):

```sh
sudo apk add zsh-completions
```

  证据: Alpine Linux edge package indexes: zsh-completions from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#zsh-completions
```

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

- pacman (92%):

```sh
sudo pacman -S zsh-completions
```

  证据: Arch Linux sync databases: zsh-completions from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:zsh-completions
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/zsh-completions>
- **版本:** 0.36.0
- **来源摘要:** Additional completion definitions for zsh
- **主页:** <https://github.com/zsh-users/zsh-completions>
- **仓库:** <https://github.com/zsh-users/zsh-completions>
- **许可证:** MIT-Modern-Variant AND BSD-3-Clause AND MIT AND Apache-2.0 AND ISC AND NCSA
- **源码归档:** <https://github.com/zsh-users/zsh-completions/archive/refs/tags/0.36.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 安装行为

- post-install 钩子: 未定义
- 注意事项: To activate these completions, add the following to your .zshrc: if type brew &>/dev/null; then FPATH=$(brew --prefix)/share/zsh-completions:$FPATH autoload -Uz compinit compinit fi You may also need to force rebuild `zcompdump`: rm -f ~/.zcompdump; compinit Additionally, if you receive "zsh compinit: insecure directories" warnings when attempting to load these completions, you may need to run these commands: chmod go-w '$HOMEBREW_PREFIX/share' chmod -R go-w '$HOMEBREW_PREFIX/share/zsh'
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.36.0
- 本地数据: OK
- 上游仓库: https://github.com/zsh-users/zsh-completions
- 检测到的最新版本: 0.36.0 (当前)
- 信息: No package-manager update timestamp was available.

## 安全说明

没有找到 zsh-completions 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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

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

- Nix - zsh-completions: normalized package name match | nixpkgs package indexes: pkgs/by-name/zs/zsh-completions/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - zsh-completions - 0.35.0-r0: normalized package name match | Alpine Linux edge package indexes: zsh-completions from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Additional completion definitions for Zsh (packaged as a plugin) | https://github.com/zsh-users/zsh-completions
- pacman - zsh-completions - 0.36.0-1: normalized package name match | Arch Linux sync databases: zsh-completions from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Additional completion definitions for Zsh | https://github.com/zsh-users/zsh-completions
- MacPorts - zsh-completions: normalized package name match | MacPorts ports tree: sysutils/zsh-completions/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.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [zsh-autocomplete](https://pkg.so/zh-hans/brew/zsh-autocomplete/) - Package names and metadata indicate a similar tool family. Shared terms: completion, zsh.
- [zsh-autopair](https://pkg.so/zh-hans/brew/zsh-autopair/) - Package names and metadata indicate a similar tool family. Shared terms: zsh.
- [zsh-autosuggestions](https://pkg.so/zh-hans/brew/zsh-autosuggestions/) - Package names and metadata indicate a similar tool family. Shared terms: zsh.

## 来源

- pkg.so package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
