Skip to content

Instantly share code, notes, and snippets.

@TheGU
Last active March 28, 2024 01:45
Show Gist options
  • Save TheGU/c7596ccb3b444b969c5186da9efe37c0 to your computer and use it in GitHub Desktop.
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": {
"red": "#ff5370",
"magenta": "#FE5672",
"green": "#7fdbca",
"blue": "#82AAFF",
"lightBlue": "#8ADDFF",
"yellow": "#FFCA6A",
"white": "#FFFFFF",
"black": "#242A36"
},
"blocks": [
{
"alignment": "left",
"newline": false,
"segments": [
{
"foreground": "p:red",
"powerline_symbol": "\ue0b0",
"style": "plain",
"template": "\uf0e7 ",
"type": "root"
},
{
"foreground": "p:green",
"powerline_symbol": "\ue0b0",
"style": "plain",
"template": " {{ .UserName }}",
"type": "session"
},
{
"type": "os",
"style": "plain",
"foreground": "p:lightBlue",
"template": " {{ if .WSL }}\udb82\ude16 {{ end }}{{.Icon}} ",
"properties": {
"macos": "mac"
}
},
{
"foreground": "p:yellow",
"powerline_symbol": "\ue0b0",
"style": "plain",
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"type": "python"
},
{
"foreground": "p:blue",
"properties": {
"folder_icon": "\uf07b ",
"folder_separator_icon": " \uf105 ",
"home_icon": "\uf015 ",
"style": "agnoster_short",
"max_depth": 4,
"mapped_locations": {
"C:\\Code": " \ueac4 Code",
"C:\\Code\\Work": " \ueac4 CWork",
"C:\\Code\\Project": " \ueac4 CProj",
"C:\\Users\\Note\\Desktop": " \uf108 Desk",
"C:\\Users\\Note\\Desktop\\Work": " \ueba2 DWork",
"/mnt/c/Code": "\ueac4 Code",
"/mnt/c/Code/Work": "\ueac4 CWork",
"/mnt/c/Code/Project": "\ueac4 CProj",
"/mnt/c/Users/Note/Desktop": "\uf108 Desk",
"/mnt/c/Users/Note/Desktop/Work": "\ueba2 DWork"
}
},
"style": "plain",
"template": "{{ .Path }}",
"type": "path"
},
{
"foreground": "p:green",
"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": {
"branch_icon": "\ue725",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true,
"github_icon": "\uf408 "
},
"style": "plain",
"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 }} \uf692 {{ .StashCount }}{{ end }}",
"type": "git"
},
{
"foreground": "p:magenta",
"style": "plain",
"template": " [.NET] {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ",
"type": "dotnet"
},
{
"foreground": "p:red",
"powerline_symbol": "\ue0b0",
"style": "plain",
"template": " \ue20f ",
"type": "exit"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "p:yellow",
"properties": {
"time_format": "15:04:05"
},
"style": "plain",
"template": "{{ .CurrentDate | date .Format }} ",
"type": "time"
},
{
"foreground": "p:green",
"style": "plain",
"template": "\u276f",
"type": "text"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment