{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "type": "prompt", "alignment": "left", "segments": [ { "properties": { "display_host": true }, "style": "plain", "template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>\u250c\u2500\u2500({{ .UserName }}{{ if .Root }}💀{{ else }}@{{ end }}{{ .HostName }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>)", "foreground": "lightBlue", "type": "session", "foreground_templates": [ "{{ if .Root }}lightRed{{ end }}" ] }, { "properties": { "display_mode": "context", "display_version": true, "fetch_version": true, "fetch_virtual_env": true }, "style": "plain", "template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[\ue73c {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}(v{{ .Full }}){{ end }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]", "foreground": "yellow", "type": "python" }, { "properties": { "folder_separator_icon": "<#c0c0c0>/", "style": "full" }, "style": "plain", "template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[{{ .Path }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]", "foreground": "lightWhite", "type": "path" }, { "style": "plain", "template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[{{ .HEAD }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]", "foreground": "white", "type": "git" } ] }, { "type": "prompt", "alignment": "right", "segments": [ { "properties": { "always_enabled": false, "style": "round", "threshold": 50 }, "style": "plain", "template": " {{ .FormattedMs }} ", "foreground": "white", "type": "executiontime" }, { "properties": { "always_enabled": true, "threshold": 50 }, "style": "plain", "template": " {{ if gt .Code 0 }}\u2a2f{{else}}{{if gt .Ms 50}}✓{{ end }}{{ end }} ", "foreground": "green", "type": "executiontime", "foreground_templates": [ "{{ if gt .Code 0 }}red{{ end }}" ] } ] }, { "type": "prompt", "alignment": "left", "segments": [ { "style": "plain", "template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>\u2514\u2500{{ if .Root }}#{{ else }}${{ end }} ", "foreground": "lightBlue", "type": "text" } ], "newline": true } ], "version": 3 }