{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "alignment": "left", "segments": [ { "foreground": "cyan", "properties": { "template": "{{ .Icon }}" }, "style": "powerline", "type": "os" }, { "foreground": "cyan", "properties": { "style": "full", "template": " {{ .Path }} " }, "style": "plain", "type": "path" }, { "foreground": "lightYellow", "properties": { "template": ":: git({{ .HEAD }})" }, "style": "plain", "type": "git" } ], "type": "prompt" }, { "alignment": "right", "segments": [ { "foreground": "#68a063", "properties": { "display_mode": "files", "fetch_package_manager": true, "fetch_version": true, "npm_icon": "/npm", "template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", "yarn_icon": "/yarn" }, "style": "plain", "type": "node" }, { "foreground": "#4063D8", "properties": { "display_mode": "files", "fetch_version": true, "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" }, "style": "plain", "type": "crystal" }, { "foreground": "#DE3F24", "properties": { "display_mode": "files", "fetch_version": true, "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" }, "style": "plain", "type": "ruby" }, { "foreground": "#FED142", "properties": { "display_mode": "context", "fetch_virtual_env": false, "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" }, "style": "plain", "type": "python" }, { "foreground": "lightGreen", "properties": { "template": " {{ .CurrentDate | date .Format }} " }, "style": "plain", "type": "time" } ], "type": "prompt" }, { "alignment": "left", "newline": true, "segments": [ { "foreground": "lightGreen", "foreground_templates": [ "{{ if gt .Code 0 }}red{{ end }}" ], "properties": { "always_enabled": true, "template": "\u279c " }, "style": "powerline", "type": "exit" } ], "type": "prompt" } ], "version": 1 }