# Install oh-my-posh with Homebrew, chocolatey, dnf, MacPorts, Nix, scoop, winget

Prompt theme engine for any shell. Version 29.22.0 via Homebrew; verified 2026-07-07.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

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

  Evidence: 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
```

  Evidence: Fedora Rawhide package metadata: oh-my-posh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

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

  Evidence: 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
```

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

- Scoop (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:oh-my-posh
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/oh-my-posh>
- **Version:** 29.22.0
- **Source summary:** Prompt theme engine for any shell
- **Homepage:** <https://ohmyposh.dev>
- **Repository:** <https://github.com/JanDeDobbeleer/oh-my-posh>
- **Upstream docs:** <https://ohmyposh.dev/docs>
- **License:** MIT
- **Source archive:** <https://github.com/JanDeDobbeleer/oh-my-posh/archive/refs/tags/v29.22.0.tar.gz>
- **Last updated:** 2026-07-07T16:38:35Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- oh-my-posh (cli)
- oh-my-posh (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 29.22.0
- Package-manager updated: 2026-07-07
- Local data: ok
- Upstream repository: https://github.com/JanDeDobbeleer/oh-my-posh
- Upstream latest detected: v29.22.0 (current)
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** oh-my-posh
- **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

## Other Package-Manager Records

- 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-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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','office365homepremium'
- 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


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [starship](https://www.automicvault.com/pkg/brew/starship/) - Shares av.db curated category or tags: cli, developer-tools, prompt, shell, shell-prompt.
- [shml](https://www.automicvault.com/pkg/brew/shml/) - Shares av.db curated category or tags: cli, developer-tools, shell, terminal.
- [aha](https://www.automicvault.com/pkg/brew/aha/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [amtterm](https://www.automicvault.com/pkg/brew/amtterm/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [ansifilter](https://www.automicvault.com/pkg/brew/ansifilter/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [ccat](https://www.automicvault.com/pkg/brew/ccat/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [clive](https://www.automicvault.com/pkg/brew/clive/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [colordiff](https://www.automicvault.com/pkg/brew/colordiff/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [et](https://www.automicvault.com/pkg/brew/et/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, shell, terminal.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
