Last active
June 16, 2025 03:41
-
-
Save xt0rted/30f873b65e63f2406a9e30b5e1646346 to your computer and use it in GitHub Desktop.
My oh my posh theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"console_title_template": "{{if .Root}}(Admin) {{end}}{{.PWD}}", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"properties": { | |
"cache_duration": "none" | |
}, | |
"template": " \udb81\udfb7 {{ .Name }} ", | |
"foreground": "#fafafa", | |
"background": "#0077c2", | |
"type": "shell", | |
"style": "powerline" | |
}, | |
{ | |
"properties": { | |
"cache_duration": "none" | |
}, | |
"foreground": "#ef4444", | |
"powerline_symbol": "\ue0b0", | |
"background": "#fef08a", | |
"type": "root", | |
"style": "powerline" | |
}, | |
{ | |
"properties": { | |
"cache_duration": "none" | |
}, | |
"template": " {{ if eq .Code 0 }}\uf42e{{ else }}\ue20f {{ .String }}{{ end }} ", | |
"foreground": "#fafafa", | |
"powerline_symbol": "\ue0b0", | |
"background": "#ef4444", | |
"type": "status", | |
"style": "powerline" | |
}, | |
{ | |
"properties": { | |
"cache_duration": "none", | |
"threshold": 500 | |
}, | |
"template": " <#fafafa>\udb80\udd09</> {{ .FormattedMs }} ", | |
"foreground": "#fafafa", | |
"powerline_symbol": "\ue0b0", | |
"background": "#9333ea", | |
"type": "executiontime", | |
"style": "powerline" | |
}, | |
{ | |
"properties": { | |
"cache_duration": "none" | |
}, | |
"template": " {{ .Env.OMP_VSEnvironment }} ", | |
"foreground": "#fafafa", | |
"powerline_symbol": "\ue0b0", | |
"background": "#592B8D", | |
"type": "text", | |
"style": "powerline" | |
}, | |
{ | |
"properties": { | |
"cache_duration": "none", | |
"display_id": true, | |
"display_name": true, | |
"info_separator": " @ " | |
}, | |
"template": " \udb82\udc05 {{ .Name }} ", | |
"foreground": "#171717", | |
"powerline_symbol": "\ue0b0", | |
"background": "#38bdf8", | |
"type": "az", | |
"style": "powerline" | |
}, | |
{ | |
"properties": { | |
"cache_duration": "none", | |
"folder_icon": "\uf115", | |
"mapped_locations": { | |
"C:\\dev\\work": "\uf4a1 ", | |
"C:\\dev\\work\\*": "\uf4a1 ", | |
"C:\\dev\\work\\project\\.worktrees": "project\\\uf1bb " | |
}, | |
"style": "full" | |
}, | |
"foreground": "#171717", | |
"powerline_symbol": "\ue0b0", | |
"background": "#7dd3fc", | |
"type": "path", | |
"style": "powerline" | |
}, | |
{ | |
"properties": { | |
"cache_duration": "none", | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": false, | |
"fetch_worktree_count": true | |
}, | |
"template": " {{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }} \uf044 <red>{{ .Working.String }}</>{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} \udb80\udd93 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb <green>{{ .WorktreeCount }}</>{{ end }} ", | |
"foreground": "#fafafa", | |
"powerline_symbol": "\ue0b0", | |
"background": "#171717", | |
"type": "git", | |
"style": "powerline" | |
}, | |
{ | |
"properties": { | |
"cache_duration": "none" | |
}, | |
"template": " \ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ", | |
"foreground": "#fafafa", | |
"powerline_symbol": "\ue0b0", | |
"background": "#512bd4", | |
"type": "dotnet", | |
"style": "powerline" | |
}, | |
{ | |
"properties": { | |
"cache_duration": "none", | |
"fetch_package_manager": true | |
}, | |
"template": " \ue718 {{ .Full }} ", | |
"foreground": "#fafafa", | |
"powerline_symbol": "\ue0b0", | |
"background": "#6F9F60", | |
"type": "node", | |
"style": "powerline" | |
}, | |
{ | |
"properties": { | |
"cache_duration": "none", | |
"display_mode": "context" | |
}, | |
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", | |
"foreground": "#171717", | |
"powerline_symbol": "\ue0b0", | |
"background": "#906cff", | |
"type": "python", | |
"style": "powerline" | |
} | |
] | |
}, | |
{ | |
"type": "prompt", | |
"alignment": "right", | |
"segments": [ | |
{ | |
"properties": { | |
"cache_duration": "none", | |
"time_format": "15:04:05" | |
}, | |
"template": "[{{ .CurrentDate | date .Format }}]", | |
"foreground": "#fafafa", | |
"type": "time", | |
"style": "plain" | |
} | |
] | |
}, | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"properties": { | |
"cache_duration": "none" | |
}, | |
"template": "❯", | |
"foreground": "#fafafa", | |
"type": "text", | |
"style": "plain" | |
} | |
], | |
"newline": true | |
} | |
], | |
"version": 3, | |
"final_space": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment