A Themeable Shell Prompt With oh-my-posh

Add Git status, language versions and path info to your prompt.

macOSshellTerminalproductivityLow risk
Add eval "$(oh-my-posh init zsh)" to your shell profile to enable it.

01Command

Command
$ eval "$(oh-my-posh init zsh)"

02What it does

oh-my-posh renders a prompt from a JSON or TOML theme with segments for Git state, runtime versions, execution time and more. It is a compiled binary, so it stays fast, and supports PowerShell, bash, zsh and fish.

03Risk

RiskLow risk
CompatibilitymacOS with Homebrew installed
!Warning: Prompt segments that run commands on every keystroke can slow the shell; disable expensive segments if you notice lag.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Homebrew formula: oh-my-posh
    Homebrew · vendor-doc · 2026-09-20
    Evidence: Prompt theme engine for any shell. Packages oh-my-posh, a prompt theme engine for many shells.
  • Official project documentation
    Official project · vendor-doc · 2026-09-20
    Evidence: Packages oh-my-posh, a prompt theme engine for many shells.

Last verified: 2026-09-22 · Category: Developer

06Related solutions