Skip to content

Instantly share code, notes, and snippets.

@DrizztDoUrden
Created April 24, 2025 11:57
Show Gist options
  • Save DrizztDoUrden/23d0eb02b11132b0cb3e2a5a7410198f to your computer and use it in GitHub Desktop.
Save DrizztDoUrden/23d0eb02b11132b0cb3e2a5a7410198f to your computer and use it in GitHub Desktop.
My Frankenstein of omp themes
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"shell_integration": true,
"patch_pwsh_bleed": true,
"console_title_template": "{{.UserName}}@{{.HostName}} at {{.Shell}} in {{.Folder}}{{if .Root}} as root{{else}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"foreground": "#7eb8da",
"style": "plain",
"template": "\u250f",
"type": "text"
},
{
"foreground": "#7eb8da",
"style": "plain",
"template": "[<#ffffff>\ueb99</>{{ .UserName }}",
"type": "session"
},
{
"foreground": "#7eb8da",
"type": "shell",
"style": "plain",
"properties":
{
"mapped_shell_names":
{
"bash": "\uebca",
"pwsh": "\uebc7",
"powershell": "\uebc7",
"cmd": "\uebc4"
}
},
"template": " <#ffffff>at</> {{ .Name }}{{ .Version }}"
},
{
"foreground": "#7eb8da",
"properties": {
"alpine": "\uf300",
"arch": "\uf303",
"centos": "\uf304",
"debian": "\uf306",
"elementary": "\uf309",
"fedora": "\uf30a",
"gentoo": "\uf30d",
"linux": "\ue712",
"macos": "\ue711",
"manjaro": "\uf312",
"mint": "\uf30f",
"opensuse": "\uf314",
"raspbian": "\uf315",
"ubuntu": "\uf31c",
"windows": "\ue70f"
},
"style": "diamond",
"template": " <#ffffff>from</> {{ if .WSL }}\ue712 <#ffffff>on</> {{ end }}{{ .Icon }}",
"type": "os"
},
{
"foreground": "#7eb8da",
"style": "plain",
"template": "{{ .HostName }}]",
"type": "session"
},
{
"properties": {
"root_icon": "\uf292"
},
"style": "diamond",
"template": "\uf0e7",
"type": "root"
},
{
"foreground": "#ffa5d8",
"style": "plain",
"template": "[\uf0e7]",
"type": "root"
},
{
"foreground": "#ffa5d8",
"style": "powerline",
"template": "[<#ffffff>\uea6c</> Error, check your command]",
"type": "status"
},
{
"foreground": "#9FD356",
"foreground_templates": [
"{{ if gt .Code 0 }}#E84855{{ end }}"
],
"properties": {
"always_enabled": true
},
"style": "plain",
"template": " \uea9f {{ .Code }}",
"type": "status"
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"foreground": "#be9ddf",
"properties": {
"style": "dallas",
"threshold": 0
},
"style": "diamond",
"template": "[<#ffffff>\uf252</> {{ .FormattedMs }}s]",
"type": "executiontime"
},
{
"foreground": "#be9ddf",
"style": "diamond",
"template": "[<#ffffff>\ue266</> CPU: {{ round .PhysicalPercentUsed .Precision }}% | RAM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB <#ffffff>\ue266</>]",
"type": "sysinfo"
},
{
"foreground": "#7eb8da",
"properties": {
"time_format": "Monday at 15:04:05"
},
"style": "diamond",
"template": "[<#ffffff>\uf073</> {{ .CurrentDate | date .Format }}]",
"type": "time"
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#7eb8da",
"properties": {
"style": "full"
},
"style": "plain",
"template": "\u2516[<#98bfad>{{ .Path }}</>]",
"type": "path"
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"foreground": "#ffa5d8",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "plain",
"template": "[<#ffffff>{{ .UpstreamIcon }}</>{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} <#ffffff>\uf044</> {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} <#ffffff>\uf046</> {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} <#ffffff>\ueb4b</> {{ .StashCount }}{{ end }}]",
"type": "git"
},
{
"foreground": "#ffa5d8",
"type": "cmake",
"style": "plain",
"template": "[ {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}]"
},
{
"foreground": "#ffa5d8",
"type": "dotnet",
"style": "plain",
"template": "[ {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}"
},
{
"foreground": "#ffa5d8",
"type": "docker",
"style": "plain",
"template": "[ {{ .Context }}]"
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#7eb8da",
"style": "plain",
"template": " ~#\uf42e\u276f ",
"type": "text"
}
]
}
],
"console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}",
"transient_prompt": {
"foreground": "#7eb8da",
"style": "plain",
"template": " ~#@\u276f ",
"type": "text"
},
"secondary_prompt": {
"foreground": "#7eb8da",
"template": " \u276f ",
"type": "text"
},
"valid_line": {
"foreground": "#7eb8da",
"template": "\uf42e\u276f "
},
"error_line": {
"foreground": "#7eb8da",
"template": "!\u276f "
},
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment