{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "final_space": true, "blocks": [ { "type": "prompt", "alignment": "left", "newline": true, "segments": [ { "type": "root", "style": "plain", "powerline_symbol": "\uE0B0", "foreground": "red", "properties": { "prefix": "", "root_icon": "\uF0E7" } }, { "type": "path", "style": "plain", "foreground": "blue", "properties": { "prefix": "", "postfix": "", "home_icon": "\uF7DB", "folder_icon": "\uE5FF", "folder_separator_icon": "/", "style": "agnoster" } }, { "type": "git", "style": "plain", "foreground": "green", "foreground_templates": [ "{{ if or (.Working.Changed) (.Staging.Changed) }}yellow{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}red{{ end }}", "{{ if gt .Ahead 0 }}red{{ end }}", "{{ if gt .Behind 0 }}green{{ end }}" ], "properties": { "fetch_status": true, "fetch_stash_count": true, "fetch_upstream_icon": true, "prefix": " on ", "postfix": "", "github_icon": " ", "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}" } }, { "type": "dotnet", "style": "plain", "foreground": "magenta", "properties": { "prefix": " [.NET] " } } ] }, { "type": "prompt", "alignment": "left", "newline": true, "segments": [ { "type": "time", "style": "plain", "foreground": "yellow", "properties": { "prefix": "", "time_format": "15:04:05" } }, { "type": "text", "style": "plain", "foreground": "green", "properties": { "prefix": "", "postfix": "", "text": "\u276F" } } ] } ] }