# oh-my-posh を Homebrew, chocolatey, dnf, MacPorts, Nix, scoop, winget でインストール

oh-my-posh のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:oh-my-posh
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install oh-my-posh
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install oh-my-posh
```

  証拠: MacPorts ports tree: sysutils/oh-my-posh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install oh-my-posh
```

  証拠: 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

- Nix (92%):

```sh
nix profile install nixpkgs#oh-my-posh
```

  証拠: 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

### Windows

- Chocolatey (92%):

```sh
choco install oh-my-posh
```

  証拠: Chocolatey community package catalog: oh-my-posh from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','nvs'

- Scoop (92%):

```sh
scoop install main/oh-my-posh
```

  証拠: Scoop official bucket manifest trees: bucket/oh-my-posh.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id JanDeDobbeleer.OhMyPosh -e
```

  証拠: Windows Package Manager source index: JanDeDobbeleer.OhMyPosh from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:oh-my-posh
- **パッケージマネージャ:** Homebrew
- **バージョン:** 30.4.0
- **ソース概要:** Prompt theme engine for any shell
- **ホームページ:** <https://ohmyposh.dev>
- **リポジトリ:** <https://github.com/JanDeDobbeleer/oh-my-posh>
- **最終更新:** 2026-08-03T07:53:58Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- oh-my-posh (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 30.4.0
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://api.github.com/repos/JanDeDobbeleer/oh-my-posh>
- <https://formulae.brew.sh/api/formula/oh-my-posh.json>
- <https://formulae.brew.sh/formula/oh-my-posh>
- <https://github.com/JanDeDobbeleer/oh-my-posh>
- <https://ohmyposh.dev/docs/>
- <https://ohmyposh.dev/docs/installation/macos>
- <https://ohmyposh.dev/docs/installation/windows>
- <https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/README.md>


## セキュリティノート

generalized runtime or code generation signal.

- **Geiger リスク:** yellow / 中
- generalized runtime or code generation signal

## 他のパッケージマネージャ記録

- Nix - oh-my-posh: normalized package name match | 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
- dnf - oh-my-posh - 29.9.0-2.fc45: normalized package name match | 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 | The most customisable and low-latency cross platform/shell prompt renderer | https://github.com/jandedobbeleer/oh-my-posh
- MacPorts - oh-my-posh: normalized package name match | MacPorts ports tree: sysutils/oh-my-posh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - oh-my-posh: normalized package name match | Chocolatey community package catalog: oh-my-posh from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','nvs'
- Scoop - main/oh-my-posh: normalized package name match | Scoop official bucket manifest trees: bucket/oh-my-posh.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - JanDeDobbeleer.OhMyPosh: normalized package name match | Windows Package Manager source index: JanDeDobbeleer.OhMyPosh from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## ソース

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