Skip to content

Instantly share code, notes, and snippets.

@TheGU
Last active September 2, 2025 00:48
Show Gist options
  • Select an option

  • Save TheGU/c7596ccb3b444b969c5186da9efe37c0 to your computer and use it in GitHub Desktop.

Select an option

Save TheGU/c7596ccb3b444b969c5186da9efe37c0 to your computer and use it in GitHub Desktop.
Oh-My-Posh theme focus on detail for dev and black background
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"black": "#242A36",
"blue": "#82AAFF",
"green": "#7fdbca",
"lightBlue": "#8ADDFF",
"magenta": "#FE5672",
"red": "#ff5370",
"white": "#FFFFFF",
"yellow": "#FFCA6A"
},
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none"
},
"template": "\uf0e7 ",
"foreground": "p:red",
"powerline_symbol": "\ue0b0",
"type": "root",
"style": "plain"
},
{
"properties": {
"cache_duration": "none"
},
"template": " {{ .UserName }}",
"foreground": "p:green",
"powerline_symbol": "\ue0b0",
"type": "session",
"style": "plain"
},
{
"properties": {
"cache_duration": "none",
"macos": "mac"
},
"template": " {{ if .WSL }}\udb82\ude16 {{ end }}{{.Icon}} ",
"foreground": "p:lightBlue",
"type": "os",
"style": "plain"
},
{
"properties": {
"cache_duration": "none"
},
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"foreground": "p:yellow",
"powerline_symbol": "\ue0b0",
"type": "python",
"style": "plain"
},
{
"properties": {
"cache_duration": "none",
"folder_icon": "\uf07b ",
"folder_separator_icon": " \uf105 ",
"home_icon": "\uf015 ",
"mapped_locations": {
"/mnt/c/Code": "\ueac4 Code",
"/mnt/c/Code/Project": "\ueac4 CProj",
"/mnt/c/Code/Work": "\ueac4 CWork",
"/mnt/c/Users/Note/Desktop": "\uf108 Desk",
"/mnt/c/Users/Note/Desktop/Work": "\ueba2 DWork",
"C:\\Code": " \ueac4 Code",
"C:\\Code\\Project": " \ueac4 CProj",
"C:\\Code\\Work": " \ueac4 CWork",
"C:\\Users\\Note\\Desktop": " \uf108 Desk",
"C:\\Users\\Note\\Desktop\\Work": " \ueba2 DWork"
},
"max_depth": 4,
"style": "agnoster_short"
},
"template": "{{ .Path }}",
"foreground": "p:blue",
"type": "path",
"style": "plain"
},
{
"properties": {
"branch_icon": "\ue725",
"cache_duration": "none",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true,
"github_icon": "\uf408 "
},
"template": " on {{ .UpstreamIcon }} {{ .HEAD }} {{ .BranchStatus }} {{ if .Working.Changed }}<p:red> \uf044 {{ .Working.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<p:yellow> \uf046 {{ .Staging.String }}</>{{ end }}{{ if gt .StashCount 0 }} \uf0c7 {{ .StashCount }}{{ end }}",
"foreground": "p:green",
"type": "git",
"style": "plain",
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}",
"{{ if gt .Ahead 0 }}p:red{{ end }}",
"{{ if gt .Behind 0 }}p:green{{ end }}"
]
},
{
"properties": {
"cache_duration": "none"
},
"template": " [.NET] {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ",
"foreground": "p:magenta",
"type": "dotnet",
"style": "plain"
},
{
"properties": {
"cache_duration": "none"
},
"template": " \ue20f ",
"foreground": "p:red",
"powerline_symbol": "\ue0b0",
"type": "exit",
"style": "plain"
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none",
"time_format": "15:04:05"
},
"template": "{{ .CurrentDate | date .Format }} ",
"foreground": "p:yellow",
"type": "time",
"style": "plain"
},
{
"properties": {
"cache_duration": "none"
},
"template": "❯",
"foreground": "p:green",
"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