Closed GregorBiswanger closed 2 years ago
@GregorBiswanger this isn't a bug, but due to not following the guide. Please read the correct way to get this configured.
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
Hello, unfortunately I can't initialize oh-my-posh under CMD. I always get a source code back without an error message.
I am using version 11.1.1 - With Windows 11
Theme
{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "alignment": "left", "segments": [ { "background": "transparent", "foreground": "#ffffff", "style": "plain", "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, { "background": "#3F145B", "foreground": "#ffffff", "leading_diamond": "\ue0b6", "powerline_symbol": "\ue0b0", "properties": { "style": "folder" }, "style": "powerline", "template": " \ue5ff {{ .Path }} ", "trailing_diamond": "\ue0b0", "type": "path" }, { "background": "#fffb38", "background_templates": [ "{{ if or (.Working.Changed) (.Staging.Changed) }}#EE2F6E{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}", "{{ if gt .Ahead 0 }}#B388FF{{ end }}", "{{ if gt .Behind 0 }}#B388FF{{ end }}" ], "foreground": "#000000", "leading_diamond": "\ue0b6", "powerline_symbol": "\ue0b0", "properties": { "branch_max_length": 25, "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true }, "style": "powerline", "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 }} ", "trailing_diamond": "\ue0b4", "type": "git" }, { "background": "#6CA35E", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "fetch_version": true }, "style": "powerline", "template": " \ue70c {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ", "type": "dotnet" }, { "background": "#6CA35E", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "fetch_version": true }, "style": "powerline", "template": " \uf898 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { "background": "#DD0031", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "style": "powerline", "template": " \ue753 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "type": "angular" }, { "background": "#ffff66", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "style": "powerline", "template": " \uf0e7 ", "type": "root" }, { "background": "#49404f", "foreground": "#ffffff", "leading_diamond": "<transparent,#49404f>\ue0b0</>", "properties": { "style": "dallas", "threshold": 0 }, "style": "powerline", "template": " {{ .FormattedMs }}s ", "trailing_diamond": "\ue0b0", "type": "executiontime" }, { "background": "#2e9599", "background_templates": [ "{{ if gt .Code 0 }}#f1184c{{ end }}" ], "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "always_enabled": true }, "style": "powerline", "template": " \ue23a{{ if gt .Code 0 }}\uf00d{{ else }}\uf42e{{ end }} ", "trailing_diamond": "\ue0b4", "type": "exit" } ], "type": "prompt" }, { "alignment": "left", "newline": true, "segments": [ { "style": "plain", "template": " \uf0e7 ", "type": "root" }, { "foreground": "#ffffff", "style": "plain", "template": ">", "type": "text" } ], "type": "prompt" } ], "version": 2 }
What OS are you seeing the problem on?
Windows
Which shell are you using?
other (please specify)
Log output