My oh-my-posh config

I have been experimenting with oh-my-posh for quite some time to set up a minimal-looking terminal experience. Well, it is not minimal but looks okay. Same random characters are displayed in the image which is not present in the actual terminal.

My current setup
My current setup

I have attached my theme JSON below if you want to create the same.

{
    "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
    "blocks": [
        {
            "alignment": "left",
            "segments": [
                {
                    "foreground": "#45F1C2",
                    "properties": {
                        "template": "\uf508 {{ .UserName }} on"
                    },
                    "style": "plain",
                    "type": "session"
                },
                {
                    "foreground": "#56B6C2",
                    "properties": {
                        "folder_separator_icon": "/",
                        "style": "mixed",
                        "template": " \uf07b {{ .Path }} "
                    },
                    "style": "plain",
                    "type": "path"
                },
                {
                    "background_templates": [
                        "{{if contains \"default\" .Profile}}#FFA400{{end}}",
                        "{{if contains \"jan\" .Profile}}#f1184c{{end}}"
                    ],
                    "foreground": "#ffffff",
                    "powerline_symbol": "\ue0b0",
                    "properties": {
                        "display_default": false,
                        "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} "
                    },
                    "style": "powerline",
                    "type": "aws"
                },
                {
                    "foreground": "#D0666F",
                    "properties": {
                        "branch_max_length": 25,
                        "fetch_stash_count": true,
                        "fetch_status": true,
                        "fetch_upstream_icon": true,
                        "template": "<#5FAAE8>{{ .UpstreamIcon }}git:(</>{{ .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 }}<#5FAAE8>)</>"
                    },
                    "style": "powerline",
                    "type": "git"
                },
                {
                    "foreground": "#ffffff",
                    "properties": {
                        "template": " \uE718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} "
                    },
                    "style": "powerline",
                    "type": "node"
                },
                {
                    "type": "angular",
                    "style": "powerline",
                    "foreground": "#B52E31",
                    "properties": {
                        "template": " \uE753 {{ .Full }} "
                    }
                },
                {
                    "background": "#FFDE57",
                    "foreground": "#111111",
                    "properties": {
                        "display_mode": "files",
                        "fetch_virtual_env": false,
                        "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} "
                    },
                    "style": "powerline",
                    "type": "python"
                },

                {
                    "foreground": "#1BD760",
                    "properties": {
                        "template": "\uf9c6 {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} "
                    },
                    "style": "powerline",
                    "type": "spotify"
                },

                {
                    "foreground": "#BF616A",
                    "properties": {
                        "template": " \u2717"
                    },
                    "style": "plain",
                    "type": "exit"
                }
            ],
            "type": "prompt"
        }
    ],
    "console_title": true,
    "console_title_style": "template",
    "final_space": true,
    "version": 1
}

More References:

  1. Oh My Posh - A prompt theme engine for any shell.