pkg.soopen package index

brew / 排名 572

使用 Homebrew, chocolatey, dnf, MacPorts, Nix, scoop, winget 安装 oh-my-posh

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install oh-my-posh

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install oh-my-posh

MacPorts ports tree · sysutils/oh-my-posh/Portfile · 来源: api.github.com

Linux

Fedora dnf已验证 · 92%
sudo dnf install oh-my-posh

Fedora Rawhide package metadata · oh-my-posh · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#oh-my-posh

nixpkgs package indexes · pkgs/by-name/oh/oh-my-posh/package.nix · 来源: api.github.com

Windows

Chocolatey已验证 · 92%
choco install oh-my-posh

Chocolatey community package catalog · oh-my-posh · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/oh-my-posh

Scoop official bucket manifest trees · bucket/oh-my-posh.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id JanDeDobbeleer.OhMyPosh -e

Windows Package Manager source index · JanDeDobbeleer.OhMyPosh · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Prompt theme engine for any shell

命令和别名

  • oh-my-posh

历史

项目历史与用法

Oh My Posh is a cross-platform prompt renderer and theme engine for shells such as PowerShell, Bash, Zsh, Fish, Cmd, and Nushell. It grew out of PowerShell prompt customization into a Go-based, shell-agnostic prompt system with JSON, YAML, or TOML configuration.

项目历史

The JanDeDobbeleer/oh-my-posh repository was created on 2019-03-13. Its README says the project started as the offspring of oh-my-posh2 for PowerShell, then became a cross-platform, highly customizable and extensible prompt theme engine after four years of work on oh-my-posh.

The documentation explains the design shift from script-per-theme prompt tools to a single shareable configuration file. Prompt output is assembled from blocks and segments, where segments render context such as the current directory, user information, or Git status.

采用历史

Oh My Posh's adoption is visible across both source hosting and package managers. GitHub API metadata fetched on 2026-07-01 reported 22,950 stars and 2,749 forks, while Homebrew Formulae reported 61,035 installs in its 365-day analytics window. The input metadata lists Homebrew, Chocolatey, Fedora/dnf, MacPorts, Nix, Scoop, and WinGet packaging.

The project also benefited from the Windows Terminal and PowerShell customization wave. Official installation docs cover Windows via WinGet, manual PowerShell install script, and Chocolatey, macOS via Homebrew and MacPorts, and Linux through separate installation instructions.

使用方式

A user installs the oh-my-posh binary, installs a font capable of rendering prompt icons when needed, and adds shell initialization code that evaluates the prompt renderer. Themes can be selected from bundled configurations or customized through blocks, segments, colors, templates, secondary prompts, right prompts, transient prompts, and tooltips.

Developers use Oh My Posh to make repository state, language runtime versions, cloud context, exit status, execution time, and other environment details visible in the prompt. The project competes in the same mental space as Powerline-style themes and Starship, while keeping its own configuration and segment ecosystem.

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

Oh My Posh is interesting to package nerds because it is a single CLI that must integrate with many shells and terminals, while also depending on fonts, glyph rendering, and per-platform installation conventions. Its package metadata spans Windows package managers, Unix package managers, and Go source builds.

时间线

  • 2019-03-13: the JanDeDobbeleer/oh-my-posh GitHub repository was created.
  • Version 4: the documentation says existing themes were added to version 4 so users could start without learning all theming internals.
  • 2026-07-01: Homebrew Formulae listed stable version 29.19.1 and GitHub API metadata reported 22,950 stars.

Related projects

  • The README credits influences and adjacent tools including oh-my-posh2, posh-git, oh-my-zsh, powerline-go, and Starship. Its topic metadata includes PowerShell, Bash, Zsh, Fish, Cmd, Nushell, Nerd Fonts, Powerline, Git, and shell prompt tooling.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:shell

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
oh-my-posh可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本30.4.0
管理器更新时间2026-08-03
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:oh-my-posh
版本30.4.0
软件包管理器Homebrew
主页https://ohmyposh.dev
仓库https://github.com/JanDeDobbeleer/oh-my-posh
最后更新2026-08-03T07:53:58Z
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

oh-my-posh

nix profile install nixpkgs#oh-my-posh
  • normalized package name match
  • 匹配方式:Oh My Posh
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/oh/oh-my-posh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
dnf95%

oh-my-posh 29.9.0-2.fc45

The most customisable and low-latency cross platform/shell prompt renderer

https://github.com/jandedobbeleer/oh-my-posh

sudo dnf install oh-my-posh
  • License: Apache-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (FTL OR GPL-2.0-or-later)
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: oh-my-posh
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Oh My Posh
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: oh-my-posh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
MacPorts95%

oh-my-posh

sudo port install oh-my-posh
  • normalized package name match
  • 匹配方式:Oh My Posh
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/oh-my-posh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

oh-my-posh

choco install oh-my-posh
  • normalized package name match
  • 匹配方式:Oh My Posh
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: oh-my-posh from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','nvs'
Scoop95%

main/oh-my-posh

scoop install main/oh-my-posh
  • normalized package name match
  • 匹配方式:Oh My Posh
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/oh-my-posh.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

JanDeDobbeleer.OhMyPosh

winget install --id JanDeDobbeleer.OhMyPosh -e
  • normalized package name match
  • 匹配方式:Oh My Posh
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: JanDeDobbeleer.OhMyPosh from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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