{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "version": 2, "blocks": [ { "type": "prompt", "alignment": "left", "segments": [ { "type": "session", "style": "plain", "foreground": "lightBlue", "foreground_templates": [ "{{ if .Root }}lightRed{{ end }}" ], "template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>\u250c\u2500\u2500({{ .UserName }}{{ if .Root }}💀{{ else }}@{{ end }}{{ .HostName }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>)", "properties": { "display_host": true } }, { "type": "python", "style": "plain", "foreground": "yellow", "template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }}{{ end }}{{ .Full }}{{ end }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]", "properties": { "fetch_version": false, "fetch_virtual_env": true } }, { "type": "path", "style": "plain", "foreground": "lightWhite", "template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[{{ .Path }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]", "properties": { "folder_separator_icon": "<#c0c0c0>/", "style": "full" } }, { "type": "git", "style": "plain", "foreground": "white", "template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[{{ .HEAD }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]{{if .BranchStatus }}-[{{ .BranchStatus }}]{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}]{{ end }}" }, { "type": "flutter", "style": "plain", "foreground": "white", "template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[ {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]", "cache_version": 1 } ] }, { "type": "prompt", "alignment": "right", "segments": [ { "type": "command", "style": "plain", "foreground": "#340452", "properties": { "shell": "bash", "command": "[ \"$(playerctl status)\" = \"Playing\" ] && echo \"$(playerctl metadata title) - $(playerctl metadata artist)\"||" } }, { "type": "executiontime", "style": "plain", "foreground": "white", "template": " {{ .FormattedMs }} ", "properties": { "always_enabled": true, "style": "round" } }, { "type": "exit", "style": "plain", "foreground": "green", "foreground_templates": [ "{{ if gt .Code 0 }}red{{ end }}" ], "template": " {{ if gt .Code 0 }}\u2a2f{{else}}✓{{ end }} ", "properties": { "always_enabled": true } } ] }, { "type": "prompt", "alignment": "left", "segments": [ { "type": "text", "style": "plain", "foreground": "lightBlue", "template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>\u2514\u2500{{ if .Root }}#{{ else }}${{ end }} " } ], "newline": true } ] }