Back to CMD Prompt Tools
Oh My Posh
ohmyposh.dev

Oh My Posh is a blazing-fast prompt theme engine built with Go. It works with any shell — CMD, PowerShell, Bash, Zsh, Fish — and on any OS. With over 180 built-in segment types, your prompt shows Git status, active language versions, cloud context, and much more.

Paired with Cmder + Clink, it gives Windows CMD the intelligent, context-aware prompt that Linux developers have enjoyed for years — you know your branch state before typing a single command.

  • 50+ built-in themes, fully customisable via a JSON config file
  • Git segment: branch name, ahead/behind count, staged, modified, untracked
  • Works in CMD, PowerShell, Bash, Zsh — one config, everywhere
  • Built with Go — near-instant render even with complex multi-segment configs
Cmder — cmd.exe
# Plain cmd.exe — no context, no colour
C:\projects\myapp> _
# Oh My Posh — branch is clean, in sync with remote
~/projects/myapp mainλ git log --oneline
# 1 commit ahead · 2 modified · 1 untracked file
~/projects/myapp feature/login ↑1 ~2 ?1 λ git diff
# 3 files staged and ready to commit
~/projects/myapp feature/login +3 staged λ git commit -m "add login form"
1
Install Oh My Posh

One-line setup on Windows using winget:

winget install JanDeDobbeleer.OhMyPosh
2
Install a Nerd Font

Segment icons require a patched font. Install one, then set it in Cmder (Win+Alt+P → Main → Font):

oh-my-posh font install
3
Configure in Cmder

Add to %CMDER_ROOT%\config\user_profile.cmd to initialise on every new tab:

@for /f "delims=" %%i in ('oh-my-posh init cmd') do @%%i
4
Choose a Theme

Browse 50+ themes at ohmyposh.dev/docs/themes, then point to your chosen file:

oh-my-posh init cmd --config "%POSH_THEMES_PATH%\jandedobbeleer.omp.json"

Comments

Sign in with GitHub to leave a comment or reaction.