macOS
brew install onefetchlocal Homebrew formula metadata
sudo port install onefetchMacPorts ports tree · devel/onefetch/Portfile · 来源: api.github.com
安装
brew install onefetchlocal Homebrew formula metadata
sudo port install onefetchMacPorts ports tree · devel/onefetch/Portfile · 来源: api.github.com
sudo apk add onefetchAlpine Linux edge package indexes · onefetch · 来源: dl-cdn.alpinelinux.org
sudo dnf install onefetchFedora Rawhide package metadata · onefetch · 来源: dl.fedoraproject.org
nix profile install nixpkgs#onefetchnixpkgs package indexes · pkgs/by-name/on/onefetch/package.nix · 来源: api.github.com
sudo pacman -S onefetchArch Linux sync databases · onefetch · 来源: geo.mirror.pkgbuild.com
sudo zypper install onefetchopenSUSE Tumbleweed package metadata · onefetch · 来源: download.opensuse.org
scoop install extras/onefetchScoop official bucket manifest trees · bucket/onefetch.json · 来源: api.github.com
winget install --id o2sh.onefetch -eWindows Package Manager source index · o2sh.onefetch · 来源: cdn.winget.microsoft.com
概览
Command-line Git information tool
历史
Onefetch is a Rust command-line tool that summarizes a local Git repository in the terminal. It reads repository metadata and code statistics offline, then displays them with language-aware styling and ASCII art.
The project developed as a fetch-style tool for repositories rather than machines: instead of reporting OS, kernel, and hardware information, it reports project name, branch, commit and author statistics, language mix, license, repository size, and related Git metadata.
The changelog shows the tool maturing through performance and packaging work. Version 2.13.0 in 2022 made execution more than twice as fast by reducing allocations and moving expensive Git work toward gitoxide; version 2.20.0 in 2024 marked completion of the transition from git2/libgit2 to gitoxide.
Onefetch spread through developer package channels rather than a single platform. Its README documents installation on Linux, macOS, and Windows using release binaries plus package managers such as pacman, zypper, Homebrew, and winget, while the wiki also documents Ubuntu, Snap, Chocolatey, and other routes.
Language coverage became part of its adoption loop. onefetch.dev displays the supported language ASCII previews from the same Languages.yaml data used by the binary, and the site lists 122 languages with programming, data, markup, and prose categories.
A developer runs onefetch inside a Git worktree or passes a repository path. The tool can be used as a one-off repository summary, a shell greeter when entering Git directories, or a machine-readable metadata extractor through JSON and YAML output modes.
The README emphasizes offline operation, performance, and customization: users can hide fields, adjust styling, ignore files and directories, choose output formats, and use .mailmap to merge duplicate authors found in Git history.
Onefetch is notable because it packages repository anthropology into a single CLI: language detection, Git traversal, manifest/license parsing, author aggregation, and terminal presentation. Its migration to gitoxide is also a package-nerd signal, replacing libgit2 bindings with a Rust-native Git stack.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
onefetch | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/o2sh/onefetch
安装元数据
| 软件包键 | brew:onefetch |
|---|---|
| 版本 | 2.27.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/onefetch |
| 主页 | https://onefetch.dev/ |
| 仓库 | https://github.com/o2sh/onefetch |
| 上游文档 | https://github.com/o2sh/onefetch#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/o2sh/onefetch/archive/refs/tags/2.27.1.tar.gz |
| 依赖 | zstd |
| 构建依赖 | cmake, pkgconf, rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | onefetch |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
onefetch
nix profile install nixpkgs#onefetchonefetch 2.26.1-r0
Git repository summary on your terminal
https://github.com/o2sh/onefetch
sudo apk add onefetchonefetch-bash-completion 2.26.1-r0
Bash completions for onefetch
https://github.com/o2sh/onefetch
sudo apk add onefetch-bash-completiononefetch-doc 2.26.1-r0
Git repository summary on your terminal (documentation)
https://github.com/o2sh/onefetch
sudo apk add onefetch-doconefetch-fish-completion 2.26.1-r0
Fish completions for onefetch
https://github.com/o2sh/onefetch
sudo apk add onefetch-fish-completiononefetch-zsh-completion 2.26.1-r0
Zsh completions for onefetch
https://github.com/o2sh/onefetch
sudo apk add onefetch-zsh-completiononefetch 2.27.1-5.fc45
Command-line Git information tool
https://crates.io/crates/onefetch
sudo dnf install onefetchonefetch 2.27.1-1
Git repository summary on your terminal
https://github.com/o2sh/onefetch
sudo pacman -S onefetchonefetch 2.27.1-1.2
Git repository summary on your terminal
https://github.com/o2sh/onefetch
sudo zypper install onefetchonefetch
sudo port install onefetchextras/onefetch
scoop install extras/onefetcho2sh.onefetch
winget install --id o2sh.onefetch -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.