MCPcopy
hub / github.com/JanDeDobbeleer/oh-my-posh

github.com/JanDeDobbeleer/oh-my-posh @v29.20.0 sqlite

repository ↗ · DeepWiki ↗ · release v29.20.0 ↗
2,453 symbols 9,248 edges 489 files 288 documented · 12%
README

Oh My Posh logo – Prompt theme engine for any shell

MIT license badge

Build Status badge

Release version number badge

Documentation link badge ohmyposh.dev

Number of GitHub Downloads badge

This repo was made with love using GitKraken.

GitKraken shield

Sponsors

      <img alt="CodeRabbit" height="44" src="https://victorious-bubble-f69a016683.media.strapiapp.com/Orange_Typemark_43bf516c9d.svg" />

J

Want to become a sponsor?

Join the community

Mastodon badge

Discord badge

What started as the offspring of oh-my-posh2 for PowerShell resulted in a cross platform, highly customizable and extensible prompt theme engine. After 4 years of working on oh-my-posh, a modern and more efficient tool was needed to suit my personal needs.

:heart: Support :heart:

Swag - Show your love with a t-shirt!

GitHub - One time support, or a recurring donation?

Ko-Fi - No coffee, no code.

Features

  • Shell and platform agnostic
  • Easily configurable
  • The most configurable prompt utility
  • Fast
  • Secondary prompt
  • Right prompt
  • Transient prompt

Documentation

Documentation

Reviews

Thanks

Extension points exported contracts — how you extend this code

StravaAPI (Interface)
StravaAPI is a wrapper around http.Oauth [4 implementers]
src/segments/strava.go
String (Interface)
String is the interface that wraps ToColor method. ToColor gets the ANSI color code for a given color string. This can [3 …
src/color/colors.go
ErrorGetter (Interface)
ErrorGetter is implemented by auth models to get the error. [1 implementers]
src/cli/auth/cli.go
State (Interface)
(no doc) [3 implementers]
src/dsc/resource.go
Environment (Interface)
(no doc) [2 implementers]
src/runtime/environment.go
SegmentWriter (Interface)
SegmentWriter is the interface used to define what and if to write to the prompt
src/config/segment_types.go
Option (FuncType)
(no doc)
src/cache/init.go
Numeric (Interface)
(no doc)
src/generics/convert.go

Core symbols most depended-on inside this repo

Equal
called by 583
src/dsc/resource.go
String
called by 283
src/segments/options/map.go
Init
called by 274
src/config/segment_types.go
Join
called by 142
src/template/list.go
Flags
called by 124
src/runtime/environment.go
Set
called by 89
src/cache/command.go
Enabled
called by 72
src/config/segment_types.go
Error
called by 70
src/segments/copilot.go

Shape

Method 1,118
Function 877
Struct 372
TypeAlias 61
Interface 19
FuncType 6

Languages

Go99%
TypeScript1%

Modules by API surface

src/runtime/environment.go58 symbols
src/runtime/mock/environment.go52 symbols
src/segments/git.go43 symbols
src/segments/claude.go41 symbols
src/runtime/terminal.go38 symbols
src/segments/path.go36 symbols
src/color/colors.go35 symbols
src/terminal/writer.go30 symbols
src/config/segment.go30 symbols
src/segments/language_test.go28 symbols
src/segments/project.go27 symbols
src/segments/options/map.go26 symbols

Dependencies from manifests, versioned

dario.cat/mergov1.0.2 · 1×
dmitri.shuralyov.com/font/woff2v0.0.0-2018022021464 · 1×
github.com/Azure/go-ansitermv0.0.0-2025010203350 · 1×
github.com/ConradIrwin/fontv0.2.1 · 1×
github.com/Masterminds/goutilsv1.1.1 · 1×
github.com/Masterminds/semver/v3v3.4.0 · 1×
github.com/Masterminds/sprig/v3v3.3.0 · 1×
github.com/agext/levenshteinv1.2.3 · 1×
github.com/alecthomas/assertv1.0.0 · 1×
github.com/alecthomas/colourv0.1.0 · 1×
github.com/alecthomas/reprv0.5.2 · 1×
github.com/apparentlymart/go-textseg/v15v15.0.0 · 1×

For agents

$ claude mcp add oh-my-posh \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact