{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "async": true, "blocks": [ { "type": "prompt", "alignment": "left", "segments": [ { "properties": { "style": "mixed" }, "leading_diamond": "\u256d\u2500\ue0b6", "trailing_diamond": "\ue0b4", "template": "\ue5ff {{ .Path }}", "foreground": "#ffffff", "background": "#29315A", "type": "path", "style": "diamond" }, { "properties": { "branch_max_length": 25, "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true }, "leading_diamond": " \ue0b6", "trailing_diamond": "\ue0b4", "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ 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 }} ", "foreground": "#43CCEA", "background": "#29315A", "type": "git", "style": "diamond", "foreground_templates": [ "{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}", "{{ if gt .Ahead 0 }}#B388FF{{ end }}", "{{ if gt .Behind 0 }}#B388FF{{ end }}" ] }, { "properties": { "always_enabled": true }, "template": " {{ if gt .Code 0 }}\uf525{{ else }}\uf469{{ end }}", "foreground": "#2e9599", "powerline_symbol": "\ue0b0", "type": "exit", "style": "diamond", "foreground_templates": [ "{{ if gt .Code 0 }}red{{ end }}" ] } ] }, { "type": "prompt", "alignment": "right", "segments": [ { "properties": { "always_enabled": true }, "template": "\ufbab {{ .FormattedMs }} ", "foreground": "#ffffff", "type": "executiontime", "style": "powerline" }, { "properties": { "display_mode": "files", "fetch_package_manager": true, "fetch_version": true, "npm_icon": "<#FE4A49>\ue71e npm ", "yarn_icon": "<#44FFD2>\ue6a7 yarn " }, "template": "{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }}{{ end }} \ue718 {{ .Full }} ", "foreground": "#5fb157", "type": "node", "style": "plain" }, { "properties": { "display_mode": "context", "fetch_virtual_env": false }, "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", "foreground": "#FED142", "type": "python", "style": "plain" }, { "properties": { "time_format": "3:04:05 PM" }, "template": "{{ .CurrentDate | date .Format }}", "foreground": "#43CCEA", "type": "time", "style": "plain" } ] }, { "type": "prompt", "alignment": "left", "segments": [ { "template": "\u2570\u2500", "foreground": "#29315A", "type": "text", "style": "plain" }, { "template": " <#45F1C2>{{ .UserName }} <#45F1C2>❯ ", "foreground": "#CD4277", "type": "text", "style": "plain" } ], "newline": true } ], "version": 3 }