A Themeable Shell Prompt With oh-my-posh
Add Git status, language versions and path info to your prompt.
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
!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-poshEvidence: Prompt theme engine for any shell. Packages oh-my-posh, a prompt theme engine for many shells.
- Official project documentationEvidence: Packages oh-my-posh, a prompt theme engine for many shells.
Last verified: 2026-09-22 · Category: Developer
06Related solutions
Fake Hacker Activity With genact
Display convincing but entirely fake build or hack output.
Change where screenshots are saved on Mac
Point macOS screen captures at any folder you choose instead of the desktop.
Download a file from a URL on Mac with curl
Grab any file from the web straight into the current folder — no browser needed.