# 使用 Homebrew, apk, MacPorts, Nix, pacman, zypper, scoop, winget 安装 mcfly

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

## 安装

```sh
sudo av install brew:mcfly
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mcfly
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mcfly
```

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

### Linux

- apk (92%):

```sh
sudo apk add mcfly
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#mcfly
```

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

- pacman (92%):

```sh
sudo pacman -S mcfly
```

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

- zypper (92%):

```sh
sudo zypper install mcfly
```

  证据: openSUSE Tumbleweed package metadata: mcfly from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/mcfly
```

  证据: Scoop official bucket manifest trees: bucket/mcfly.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id AndrewCantino.McFly -e
```

  证据: Windows Package Manager source index: AndrewCantino.McFly from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:mcfly
- **软件包管理器:** Homebrew
- **版本:** 0.9.4
- **来源摘要:** Fly through your shell history
- **主页:** <https://github.com/cantino/mcfly>
- **仓库:** <https://github.com/cantino/mcfly>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mcfly (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

McFly is a shell-history replacement for reverse search, designed to make Ctrl-R results context-aware instead of purely chronological. The project describes itself as an upgraded Ctrl-R that considers the current directory, command exit status, timestamps, and prior shell history.

### 项目历史

The official GitHub repository was created in July 2018, and the first listed GitHub release, v0.1.0, was published on 2018-10-12. It is written in Rust and integrates with Bash, Zsh, Fish, and PowerShell rather than replacing the shell itself.

McFly's README emphasizes reversibility: it augments shell history in a SQLite database while maintaining the normal shell history file, so users can stop using McFly without losing the conventional history path. That design choice helped it fit into conservative shell setups.

### 采用历史

The supplied package-manager facts list McFly across Homebrew, MacPorts, Alpine, Arch, Nix, Scoop, WinGet, and openSUSE/Zypper, showing broad packaging across Unix-like and Windows-adjacent ecosystems.

The README documents Homebrew, MacPorts, WinGet, install-script, manual release, source, and Zinit installation paths. It also includes release-process notes for Homebrew, reflecting long-running package-manager maintenance rather than a one-off binary upload.

### 使用方式

Typical use is rebinding Ctrl-R in a shell startup file so McFly opens a full-screen history search UI. The tool stores enhanced history metadata in an OS-specific SQLite database and can dump history to stdout for scripting or inspection.

McFly's settings are mostly environment-variable based, with color settings stored in a config.toml under the McFly data directory. The README documents the macOS application-support path, Linux XDG data path, and a legacy ~/.mcfly fallback.

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

McFly is package-nerd interesting because it modernized an old shell muscle-memory path without requiring a new shell or large framework. It is a Rust CLI with many package-manager entries, a small executable surface, and visible cross-shell integration details.

Its use of SQLite for enriched history also makes it part of the broader trend of CLIs turning plain-text shell workflows into indexed local databases while preserving escape hatches back to ordinary files.

### 时间线

- 2018-07: GitHub repository created.
- 2018-10: v0.1.0 published on GitHub releases.
- 2023-2025: Continued 0.8 and 0.9 release series.
- 2025-12: v0.9.4 published on GitHub releases.

### Related projects

- Related shell-history tools include fzf-based Ctrl-R bindings, atuin, hstr, and shell-native history search. McFly's official positioning is specifically an intelligent replacement for Ctrl-R rather than a full shell environment.

### 来源

- <https://github.com/cantino/mcfly>
- <https://github.com/cantino/mcfly#readme>
- <https://github.com/cantino/mcfly/releases>
- source_facts.package-manager


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal


## 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

- Linux: $XDG_DATA_DIR/mcfly/config.toml, ~/.local/share/mcfly/config.toml, ~/.mcfly/config.toml
- macOS: ~/Library/Application Support/McFly/config.toml, ~/.mcfly/config.toml
## 其他软件包管理器记录

- Nix - mcfly: normalized package name match | nixpkgs package indexes: pkgs/by-name/mc/mcfly/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - mcfly - 0.9.4-r0: normalized package name match | Alpine Linux edge package indexes: mcfly from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fly through your shell history | https://github.com/cantino/mcfly
- apk - mcfly-bash-completion - 0.9.4-r0: normalized package name match | Alpine Linux edge package indexes: mcfly-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for mcfly | https://github.com/cantino/mcfly
- apk - mcfly-fish-completion - 0.9.4-r0: normalized package name match | Alpine Linux edge package indexes: mcfly-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for mcfly | https://github.com/cantino/mcfly
- apk - mcfly-zsh-completion - 0.9.4-r0: normalized package name match | Alpine Linux edge package indexes: mcfly-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for mcfly | https://github.com/cantino/mcfly
- pacman - mcfly - 0.9.4-2: normalized package name match | Arch Linux sync databases: mcfly from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Fly through your shell history | https://github.com/cantino/mcfly
- zypper - mcfly - 0.9.4-1.5: normalized package name match | openSUSE Tumbleweed package metadata: mcfly from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Shell history helper | https://github.com/cantino/mcfly
- MacPorts - mcfly: normalized package name match | MacPorts ports tree: sysutils/mcfly/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/mcfly: normalized package name match | Scoop official bucket manifest trees: bucket/mcfly.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - AndrewCantino.McFly: normalized package name match | Windows Package Manager source index: AndrewCantino.McFly from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/mcfly.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mcfly.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
