Skip to content

Instantly share code, notes, and snippets.

@ulic75
Last active March 13, 2025 23:13
Show Gist options
  • Select an option

  • Save ulic75/6059b0f0ce432354b1f7909bb156cc38 to your computer and use it in GitHub Desktop.

Select an option

Save ulic75/6059b0f0ce432354b1f7909bb156cc38 to your computer and use it in GitHub Desktop.
omp.json
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"rosewater": "#f5e0dc",
"flamingo": "#f2cdcd",
"pink": "#f5c2e7",
"mauve": "#cba6f7",
"red": "#f38ba8",
"maroon": "#eba0ac",
"peach": "#fab387",
"yellow": "#f9e2af",
"green": "#a6e3a1",
"teal": "#94e2d5",
"sky": "#89dceb",
"sapphire": "#74c7ec",
"blue": "#89b4fa",
"lavender": "#b4befe",
"text": "#cdd6f4",
"subtext0": "#bac2de",
"subtext1": "#a6adc8",
"overlay2": "#9399b2",
"overlay1": "#7f849c",
"overlay0": "#6c7086",
"surface2": "#585b70",
"surface1": "#45475a",
"surface0": "#313244",
"base": "#1e1e2e",
"mantle": "#181825",
"crust": "#11111b"
},
"secondary_prompt": {
"template": " \u2570",
"foreground": "p:overlay0"
},
"transient_prompt": {
"template": "❯ ",
"foreground": "p:green"
},
"console_title_template": "{{ .Folder }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"style": "plain",
"template": "\u256d\u2500",
"foreground": "p:overlay0",
"type": "text"
},
{
"style": "plain",
"template": "<p:surface0,transparent>\ue0b6</>",
"type": "text"
},
{
"style": "powerline",
"template": "{{.Icon}} <p:overlay0>\uE0B5</>",
"foreground": "p:white",
"background": "p:surface0",
"type": "os",
"properties": {
"amazon": "\uf270"
}
},
{
"style": "powerline",
"template": "{{ if eq .Root true }} ⚡<p:overlay0>\ue0b1</>{{ end }}",
"foreground": "p:white",
"background": "p:surface0",
"type": "text"
},
{
"properties": {
"mapped_locations": {
"D:/Users/jreilly": "~"
},
"max_depth": 3,
"style": "agnoster_short"
},
"style": "powerline",
"templates": [
"{{ if not .Writable }}\udb80\udf3e {{end}}",
"{{ path .Path .Location }}"
],
"foreground": "p:blue",
"powerline_symbol": "\ue0b0",
"background": "p:surface0",
"type": "path"
},
{
"properties": {
"azure_devops_icon": "<p:blue>\uebe8</>",
"branch_icon": "\uf126 ",
"branch_max_length": 25,
"fetch_status": true,
"fetch_upstream_icon": true,
"github_icon": "<p:white>\uf408</>",
"upstream_icons": {
"forgejo": "<p:peach>\uf335</>"
}
},
"style": "powerline",
"foreground": "p:green",
"powerline_symbol": "\ue0b4",
"background": "p:surface0",
"type": "git",
"templates": [
"<p:overlay0>\uE0B5</> ",
"{{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}",
"{{ .HEAD }}",
"{{ if or (gt .Ahead 0) (gt .Behind 0) }} {{ .BranchStatus }}{{ end }}",
"{{ if gt (add .Staging.Added .Staging.Modified .Staging.Deleted) 0 }} <p:yellow>+{{ add .Staging.Added .Staging.Modified .Staging.Deleted }}</>{{ end }}",
"{{ if gt (add .Working.Added .Working.Modified .Working.Deleted) 0 }} <p:yellow>!{{ add .Working.Added .Working.Modified .Working.Deleted }}</>{{ end }}",
"{{ if .Working.Untracked }} <p:blue>?{{ .Working.Untracked }}</>{{ end }}"
]
},
{
"style": "powerline",
"template": "<p:surface0,p:surface0></>\ue0b4",
"foreground": "p:surface0",
"background": "transparent",
"type": "text"
}
]
},
{
"type": "prompt",
"alignment": "right",
"filler": "<p:overlay0>\u2500</>",
"segments": [
{
"properties": {
"always_enabled": true
},
"style": "diamond",
"leading_diamond": "<p:surface0,transparent>\ue0b6</>",
"template": "{{ if eq .Code 0 }}✔{{ else }}<p:red>{{ .Code }} ✘</>{{ end }}",
"foreground": "p:green",
"background": "p:surface0",
"type": "status"
},
{
"style": "powerline",
"template": "{{ if .SSHSession }} <p:overlay0>\uE0B7</> {{ .UserName }}@{{ .HostName }}{{ end }}",
"foreground": "p:lavender",
"background": "p:surface0",
"type": "session"
},
{
"style": "plain",
"templates": [
" <i><p:overlay0>\uE0B7</> ",
"{{ if eq .Shell \"nu\" }}NU\ueab6{{ end }}",
"{{ if eq .Shell \"zsh\" }}Z\ueab6{{ end }}",
"{{ if eq .Shell \"bash\" }}B\ueab6{{ end }}",
"{{ if eq .Shell \"powershell\" }}\ue683 {{ end }}",
"</i>"
],
"foreground": "p:blue",
"background": "p:surface0",
"type": "text"
},
{
"style": "powerline",
"template": " <p:overlay0>\uE0B7</> {{ .CurrentDate | date .Format }} \uf017 ",
"foreground": "p:subtext1",
"background": "p:surface0",
"type": "time"
},
{
"style": "plain",
"template": "<p:surface0,transparent>\ue0b4</>",
"type": "text"
},
{
"style": "plain",
"template": "\u2500\u256e",
"foreground": "p:overlay0",
"background": "transparent",
"type": "text",
"invert_powerline": true
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"style": "plain",
"template": "\u2570\u2500",
"foreground": "p:overlay0",
"type": "text"
}
],
"newline": true
},
{
"type": "rprompt",
"segments": [
{
"style": "plain",
"template": "\u2500\u256f",
"foreground": "p:overlay0",
"type": "text"
}
]
}
],
"version": 3,
"final_space": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment