JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
17.6k stars 2.41k forks source link

foreground color incorrectly applied to trailing diamond #4290

Closed aexvir closed 1 year ago

aexvir commented 1 year ago

Code of Conduct

What happened?

this morning I've updated oh my posh to v18.10.1 and suddenly my theme is displaying the trailing diamond from my path segment with messed up colors; it seems to be using both foreground and background, when it should use background and transparent?

I've seen there was https://github.com/JanDeDobbeleer/oh-my-posh/issues/4280 which seems to have been fixing something around here, but while that might have fixed the issue reported there, it has introduced the issue I'm experiencing now, as I've tested the same theme on v18.10.0 and worked fine

capture-20230926153555

building v18.10.0 from source works fine

capture-20230926154202

Theme

version: 2
final_space: true

transient_prompt:
  foreground: magenta
  template: " "

blocks:
    - type: prompt
      alignment: left

      segments:
        - type: path
          style: diamond
          background: black
          foreground: blue
          template: '{{ .Path }} <red></><yellow></><green></>'
          leading_diamond: 
          trailing_diamond: 
          properties:
            style: agnoster_short
            folder_icon: 
            folder_separator_icon: <lightBlue></>
            home_icon: 
            mapped_locations:
                ~/.config: 
                ~/.ssh: 
                ~/books: 
                ~/documents: 
                ~/downloads: 
                ~/go: 
                ~/google drive: 
                ~/projects: 

What OS are you seeing the problem on?

macOS

Which shell are you using?

fish

Log output

Version: 18.10.1

Shell: fish (3.6.1)

Prompt:

  

Segments:

ConsoleTitle(false)                       -   0 ms
Path(true)                                -   0 ms
Command(false)                            -   0 ms
Go(false)                                 -   0 ms
Rust(false)                               -   0 ms
Python(false)                             -   0 ms
Node(false)                               -   0 ms
Git(false)                                -   0 ms
Executiontime(false)                      -   0 ms
Exit(false)                               -   0 ms

Run duration: 3.216709ms

Cache path: /Users/aexvir/.cache/oh-my-posh

Config path: /Users/aexvir/.config/ompsh/theme.xvrsh.yml

Logs:

[DEBUG] 15:33:12.660 shell.go:Getenv:392 → iTerm.app
[TRACE] 15:33:12.660 shell.go:Getenv(TERM_PROGRAM) - 23.25µs
[DEBUG] 15:33:12.660 shell.go:Getenv:392 → NO DATA
[TRACE] 15:33:12.660 shell.go:Getenv(XDG_CACHE_HOME) - 2.25µs
[TRACE] 15:33:12.660 shell_unix.go:CachePath() - 21.75µs
[DEBUG] 15:33:12.660 shell.go:Getenv:392 → /Users/aexvir/.config/ompsh/theme.xvrsh.yml
[TRACE] 15:33:12.660 shell.go:Getenv(POSH_THEME) - 3.125µs
[DEBUG] 15:33:12.660 shell_unix.go:Platform:77 → darwin
[TRACE] 15:33:12.660 shell.go:resolveConfigPath() - 9.792µs
[TRACE] 15:33:12.660 shell.go:Init() - 357.333µs
[TRACE] 15:33:12.660 shell.go:Flags() - 41ns
[TRACE] 15:33:12.663 config.go:loadConfig() - 2.059416ms
[TRACE] 15:33:12.663 shell.go:Flags() - 42ns
[DEBUG] 15:33:12.663 shell.go:Getenv:392 → NO DATA
[TRACE] 15:33:12.663 shell.go:Getenv(OMP_CACHE_DISABLED) - 6.167µs
[DEBUG] 15:33:12.663 shell.go:Shell:632 → no shell name provided in flags, trying to detect it
[DEBUG] 15:33:12.663 shell.go:Shell:640 → process name: fish
[TRACE] 15:33:12.663 shell.go:Shell() - 102.166µs
[DEBUG] 15:33:12.663 shell.go:Getenv:392 → 3.6.1
[TRACE] 15:33:12.663 shell.go:Getenv(POSH_SHELL_VERSION) - 1.875µs
[DEBUG] 15:33:12.663 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 15:33:12.663 text.go:Render:70 → Rendering template: 
[DEBUG] 15:33:12.663 shell.go:Getenv:392 → NO DATA
[TRACE] 15:33:12.663 shell.go:Getenv(POSH_CURSOR_LINE) - 2.958µs
[DEBUG] 15:33:12.663 shell.go:Getenv:392 → NO DATA
[TRACE] 15:33:12.663 shell.go:Getenv(POSH_CURSOR_COLUMN) - 1.417µs
[TRACE] 15:33:12.663 shell.go:Flags() - 0s
[TRACE] 15:33:12.663 shell.go:Flags() - 42ns
[TRACE] 15:33:12.663 shell.go:Shell() - 41ns
[TRACE] 15:33:12.663 shell.go:Shell() - 41ns
[TRACE] 15:33:12.663 shell.go:Flags() - 42ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[DEBUG] 15:33:12.663 shell.go:Pwd:422 → /Users/aexvir
[TRACE] 15:33:12.663 shell.go:Pwd() - 30.583µs
[TRACE] 15:33:12.663 shell.go:GOOS() - 0s
[DEBUG] 15:33:12.663 segment.go:SetEnabled:497 → Segment: Path
[TRACE] 15:33:12.663 shell.go:Pwd() - 83ns
[TRACE] 15:33:12.663 shell.go:Shell() - 42ns
[TRACE] 15:33:12.663 shell.go:Shell() - 41ns
[DEBUG] 15:33:12.663 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 15:33:12.663 properties.go:GetString:28 → 
[DEBUG] 15:33:12.663 properties.go:GetString:28 → 
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[DEBUG] 15:33:12.663 properties.go:GetString:28 → 
[DEBUG] 15:33:12.663 properties.go:GetKeyValueMap:46 → mapped_locations: map[~/.config: ~/.ssh: ~/books: ~/documents: ~/downloads: ~/go: ~/google drive: ~/projects:]
[DEBUG] 15:33:12.663 text.go:Render:70 → Rendering template: ~/go
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[DEBUG] 15:33:12.663 text.go:Render:70 → Rendering template: ~/google drive
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[DEBUG] 15:33:12.663 text.go:Render:70 → Rendering template: ~/projects
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[DEBUG] 15:33:12.663 text.go:Render:70 → Rendering template: ~/.config
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[DEBUG] 15:33:12.663 text.go:Render:70 → Rendering template: ~/.ssh
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[DEBUG] 15:33:12.663 text.go:Render:70 → Rendering template: ~/books
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[DEBUG] 15:33:12.663 text.go:Render:70 → Rendering template: ~/documents
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[DEBUG] 15:33:12.663 text.go:Render:70 → Rendering template: ~/downloads
[TRACE] 15:33:12.663 shell.go:GOOS() - 0s
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 125ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 0s
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 41ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 42ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 42ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 0s
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 0s
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 0s
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 0s
[TRACE] 15:33:12.663 shell.go:GOOS() - 0s
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 42ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 0s
[TRACE] 15:33:12.663 shell.go:GOOS() - 0s
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 41ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 41ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 0s
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 0s
[TRACE] 15:33:12.663 shell.go:GOOS() - 0s
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:PathSeparator() - 41ns
[TRACE] 15:33:12.663 shell.go:Pwd() - 84ns
[DEBUG] 15:33:12.663 shell_unix.go:IsWsl:35 → false
[TRACE] 15:33:12.663 shell_unix.go:IsWsl() - 3.25µs
[TRACE] 15:33:12.663 shell.go:StackCount() - 84ns
[TRACE] 15:33:12.663 shell_unix.go:DirIsWritable(/Users/aexvir) - 16.708µs
[TRACE] 15:33:12.663 shell_unix.go:Root() - 417ns
[TRACE] 15:33:12.663 shell.go:Shell() - 42ns
[TRACE] 15:33:12.663 shell.go:StatusCodes() - 41ns
[DEBUG] 15:33:12.663 shell_unix.go:IsWsl:35 → false
[TRACE] 15:33:12.663 shell_unix.go:IsWsl() - 1.875µs
[DEBUG] 15:33:12.663 shell.go:TemplateCache:813 ↓
    environment: [redacted]
[TRACE] 15:33:12.663 shell.go:Pwd() - 42ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 0s
[TRACE] 15:33:12.663 shell.go:GOOS() - 0s
[TRACE] 15:33:12.663 shell.go:GOOS() - 0s
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 0s
[TRACE] 15:33:12.663 shell.go:GOOS() - 41ns
[TRACE] 15:33:12.663 shell.go:GOOS() - 42ns
[DEBUG] 15:33:12.663 shell.go:User:543 → aexvir
[TRACE] 15:33:12.663 shell.go:User() - 2µs
[DEBUG] 15:33:12.663 shell.go:Host:555 → notchbook
[TRACE] 15:33:12.663 shell.go:Host() - 7.125µs
[TRACE] 15:33:12.663 shell.go:GOOS() - 0s
[DEBUG] 15:33:12.663 shell.go:Getenv:392 → 1
[TRACE] 15:33:12.663 shell.go:Getenv(SHLVL) - 1.875µs
[TRACE] 15:33:12.663 shell.go:TemplateCache() - 70.417µs
[DEBUG] 15:33:12.663 text.go:Render:70 → Rendering template: {{ .Path }} <red></><yellow></><green></>
[TRACE] 15:33:12.663 shell.go:TemplateCache() - 83ns
[TRACE] 15:33:12.663 shell.go:Shell() - 42ns
[DEBUG] 15:33:12.663 text.go:Render:70 → Rendering template: diamond
[TRACE] 15:33:12.663 shell.go:Shell() - 83ns
[TRACE] 15:33:12.663 shell.go:Shell() - 42ns
[TRACE] 15:33:12.663 shell.go:Shell() - 41ns
[TRACE] 15:33:12.663 shell.go:Shell() - 41ns
[TRACE] 15:33:12.663 shell.go:Shell() - 42ns
[DEBUG] 15:33:12.663 shell.go:Getenv:392 → NO DATA
[TRACE] 15:33:12.663 shell.go:Getenv(XDG_CACHE_HOME) - 1.791µs
[TRACE] 15:33:12.663 shell_unix.go:CachePath() - 16µs
[TRACE] 15:33:12.663 shell.go:Flags() - 41ns
deriamis commented 1 year ago

I can confirm this is also happening on zsh on Mac OS as well, and with the leading segments and OS segment when </> appears in the template. I had been using that to work around the bug fixed in #4280. Also, I had explicitly set "transparent" background for some of the segments, which broke on this update by instead outputting "ransparent" as text on them.

deriamis commented 1 year ago

@JanDeDobbeleer From what I can tell, the commit fixing #4280 seems to have broken some other things in interesting and unexpected ways. For example, </> now seems to prevent setting a new foreground color in the template. I think there is a bigger bug with the color stack in #4280, and the commit needs to be reverted and reworked.

JanDeDobbeleer commented 1 year ago

@deriamis it indicates some tests are also missing, and finding those requires reports like this as the configs I validated with all worked. I'll fix these as they flow in instead of reverting.

deriamis commented 1 year ago

@deriamis it indicates some tests are also missing, and finding those requires reports like this as the configs I validated with all worked. I'll fix these as they flow in instead of reverting.

As you wish. Sorry, I didn't mean to tell you how to manage your project. I'll attach my theme and debug output as well, just in case it helps you. In my case, </> no longer seems to always reset the colors to the foreground and background in the current segment. I'm not sure what's happening with the ransparent thing, though. That was just weird.

Theme:

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "version": 2,
  "final_space": true,
  "console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}",
  "blocks": [
    {
      "type": "rprompt",
      "alignment": "right",
      "segments": [
        {
          "type": "exit",
          "style": "diamond",
          "foreground": "#303030",
          "background": "transparent",
          "template": "{{ if gt .Code 0 }}<#dc322f>\ue0b2</><#303030,#dc322f> \u2718 {{ .Code }} \ue0b2{{ else }}</><#303030>\ue0b2</><#859900,#303030> \u2713 </><#7e8082,#303030>\ue0b3</>{{ end }}",
          "properties": {
            "always_enabled": true
          }
        },
        {
          "type": "node",
          "style": "diamond",
          "foreground": "#6CA35E",
          "background": "#303030",
          "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}<#7e8082>\ue0b3</>",
          "properties": {
            "fetch_version": false
          }
        },
        {
          "type": "ruby",
          "style": "diamond",
          "foreground": "#9b111e",
          "background": "#303030",
          "template": " \ue791 {{ if .Error}}<#dc322f>{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
        },
        {
          "type": "python",
          "style": "diamond",
          "foreground": "#268bd2",
          "background": "#303030",
          "template": " {{ if .Error }}<#dc322f>{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} <#859900>\ue235</> <#7e8082>\ue0b3</>",
          "properties": {
              "home_enabled": true
          }
        },
        {
          "type": "go",
          "style": "powerline",
          "foreground": "#7FD5EA",
          "background": "#303030",
          "template": " \ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#7e8082> \ue0b3</>",
          "properties": {
            "fetch_version": false
          }
        },
        {
          "type": "dotnet",
          "style": "diamond",
          "foreground": "#3891A6",
          "background": "#303030",
          "template": " \ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}<#7e8082>\ue0b3</>",
          "properties": {
            "fetch_version": false
          }
        },
        {
          "type": "executiontime",
          "style": "plain",
          "foreground": "#657b83",
          "background": "#303030",
          "template": " {{ .FormattedMs }}<#268bd2> \uf252 <#7e8082>\ue0b3</>",
          "properties": {
            "style": "roundrock",
            "threshold": 500
          }
        },
        {
          "type": "session",
          "style": "diamond",
          "foreground": "#657b83",
          "background": "#303030",
          "template": "{{ if .SSHSession }} {{ if .Root }}<#dc322f>{{ end }}{{ .UserName }}<#657b83>@{{ .HostName }} <#7e8082>\ue0b3{{ end }}"
        },
        {
          "type": "time",
          "style": "diamond",
          "foreground": "#657b83",
          "background": "#303030",
          "trailing_diamond": "\u2593\u2592\u2591",
          "template": " {{ .CurrentDate | date .Format }}<#268bd2> \uf64f </>",
          "properties": {
            "time_format": "15:04:05"
          }
        }
      ]
    },
    {
      "type": "prompt",
      "alignment": "left",
      "segments": [
        {
          "type": "os",
          "style": "diamond",
          "foreground": "#fdf6e3",
          "background": "#303030",
          "leading_diamond": "\u2591\u2592\u2593",
          "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}</> "
        },
        {
          "type": "text",
          "style": "diamond",
          "powerline_symbol": "\ue0b0",
          "foreground": "#657b83",
          "background": "#303030",
          "template": "{{ if not .Root }}\ue0b1{{ else }}<#303030,#dc322f>\ue0b0</><#fafafa,#dc322f> \uf0e7 </><#dc322f,#303030>\ue0b0{{end}}"
        },
        {
          "type": "path",
          "style": "powerline",
          "foreground": "#657b83",
          "background": "#303030",
          "template": " {{if glob \".git\"}}<#268bd2>\u27bc</> {{ if .Segments.Git.IsWorkTree }}{{ path .Folder .Segments.Git.Dir }}{{ else }}{{ path .Folder .Location }}{{ end }}{{ else if or (eq (dir .Location) \"/home\") (eq (dir .Location) \"/Users\") (eq (dir .Location) \"C:\\\\Users\") }}<#2aa196>\uf015</> ~{{ if not (eq (base .Location) .UserName) }}{{ path .Folder .Location }}{{ end }}{{ else if or (glob \".bzr\") (glob \".citc\") (glob \".hg\") (glob \".node-version\") (glob \".python-version\") (glob \".go-version\") (glob \".ruby-version\") (glob \".lua-version\") (glob \".lua-version\") (glob \".java-version\") (glob \".perl-version\") (glob \".php-version\") (glob \".ruby-version\") (glob \".tool-version\") (glob \".tool-versions\") (glob \".svn\") (glob \".terraform\") (glob \"CVS\") (glob \"Cargo.toml\") (glob \"composer.json\") (glob \"go.mod\") (glob \"Gopkg.yml\") (glob \"stack.yaml\") (glob \"*.csproj\") (glob \"*.fsproj\") (glob \"*.xproj\") (glob \"mix.exs\") (glob \"rebar.config\") (glob \"erlang.mk\") (glob \"pom.xml\") (glob \"build.gradle\") (glob \"build.sbt\") (glob \"deps.edn\") (glob \"project.clj\") (glob \"build.boot\") (glob \"Project.toml\") (glob \"Manifest.toml\") (glob \".luacheckrc\") (glob \".stylua.toml\") (glob \"selene.toml\") (glob \"package.json\") (glob \"dune\") (glob \"dune-project\") (glob \"jbuild\") (glob \".merlin\") (glob \"pyproject.toml\") (glob \"setup.py\") (glob \"Pipfile\") (glob \"meson.build\") (glob \"SConstruct\") (glob \"Makefile.PL\") (glob \"Build.PL\") (glob \"META.json\") (glob \"Gemfile\") }}<#268bd2>\u27bc</> {{ path .Folder .Location }}{{ else }}{{ path .Path .Location }}{{ end }} ",
          "properties": {
            "home_icon": "<#2aa198>\uf015</> ~",
            "style": "full",
            "mapped_locations_enabled": true,
            "mapped_locations": {
              "/home/deriamis": "<#2aa198>\uf015</> ~"
            }
          }
        },
        {
          "type": "path",
          "style": "powerline",
          "foreground": "#657b83",
          "background": "#303030",
          "template": "{{ if not .Writable }}<#303030,#dc322f>\ue0b0</><#fafafa,#dc322f> \udb80\ude50 </><#dc322f,#303030>\ue0b0{{ end }}"
        },
        {
          "type": "git",
          "style": "powerline",
          "foreground": "#859900",
          "background": "#303030",
          "template": "<#657b83>\ue0b1</> <#268bd2>{{ url .UpstreamIcon .UpstreamURL }}</> {{ .HEAD }}{{ if regexMatch \"(^|[[:space:]]+)(wip|WIP)[[:alnum:]]*($[[:space:]]*)\" .Commit.Subject }}<#b58900>wip</> {{ end }} {{ .BranchStatus }} {{ if gt .StashCount 0 }}\uf0193{{ .StashCount }}{{ end }}{{ if .Working.Changed }}\uf044{{ if gt .Working.Unmerged 0 }}<#dc322f>~{{ .Working.Unmerged }}</>{{ end }}{{ if gt .Working.Added 0 }}+{{ .Working.Added }}{{ end }}{{ if gt .Working.Deleted 0 }}-{{ .Working.Deleted }}{{ end }}{{ if gt .Working.Modified 0 }}<#b58900>!{{ .Working.Modified }}</>{{ end }}{{ if gt .Working.Untracked 0 }}<#268bd2>?{{ .Working.Untracked }}</>{{ end }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} | {{ end }}{{ if .Staging.Changed }}\uf046{{ if gt .Staging.Unmerged 0 }}<#dc322f>~{{ .Staging.Unmerged }}</>{{ end }}{{ if gt .Staging.Added 0 }}+{{ .Staging.Added }}{{ end }}{{ if gt .Staging.Deleted 0 }}-{{ .Staging.Deleted }}{{ end }}{{ if gt .Staging.Modified 0 }}<#b58900>!{{ .Staging.Modified }}</>{{ end }}{{ if gt .Staging.Untracked 0 }}<#268bd2>?{{ .Staging.Untracked }}</>{{ end }}{{ end }}",
          "properties": {
            "fetch_status": true,
            "fetch_stash_count": true,
            "fetch_upstream_icon": true,
            "fetch_worktree_count": true,
            "branch_ahead_icon": "\u21e1",
            "branch_behind_icon": "\u21e3",
            "status_formats": {
              "Added": "+",
              "Deleted": "-",
              "Modified": "!",
              "Unmerged": "~",
              "Untracked": "?"
            }
          }
        },
        {
          "type": "text",
          "style": "diamond",
          "foreground": "#303030",
            "background": "transparent",
          "template": "\ue0b0"
        },
        {
          "type": "exit",
          "style": "diamond",
          "foreground": "#859900",
          "foreground_templates": [
            "{{ if gt .Code 0 }}#dc322f{{ end }}"
          ],
          "background": "transparent",
          "template": "❯",
          "properties": {
            "always_enabled": true
          }
          }
      ]
    }
  ],
  "transient_prompt": {
    "foreground": "#7e8082",
    "background": "transparent",
    "template": "<#303030>\u2591\u2592\u2593<#fdf6e3,#303030> \uea82</><#7e8082,#303030> \ue0b1 {{ .Segments.Time.CurrentDate | date .Segments.Time.Format }} \ue0b1 $SHLVL:{{ .PromptCount }} \ue0b1</>{{ if .Root }}<#dc322f,#303030> \uf0e7 {{ else }}<#2aa198,#303030>{{ end }} {{ .UserName }}<#2aa198,#303030>@{{ .HostName }}</><#7e8082,#303030>  <#b58900,#303030>{{ .PWD }} </><#303030>\ue0b0 </>{{ if .Root }}#{{ else if eq .Shell \"zsh\" }}%%{{ else }}${{ end }} "
  }
}

Debug:


Version: 18.10.1

Shell: zsh (5.9)

Prompt:

░▒▓    ~ ❯ 

Segments:

ConsoleTitle(true)                         -   0 ms
Exit(true)                                 -   1 ms
Node(false)                                -   0 ms
Ruby(false)                                -   0 ms
Python(false)                              -   0 ms
Go(false)                                  -   0 ms
Dotnet(false)                              -   0 ms
Executiontime(false)                       -   0 ms
Session(false)                             -   0 ms
Time(true)                                 -   0 ms
Os(true)                                   -   0 ms
Text(true)                                 -   0 ms
Path(true)                                 -   0 ms
Path(false)                                -   0 ms
Git(false)                                 -   0 ms
Text(true)                                 -   0 ms
Exit(true)                                 -   0 ms

Run duration: 4.941875ms

Cache path: /Users/deriamis/.cache/oh-my-posh

Config path: /Users/deriamis/.poshthemes/powerlevel10k_poweruser.omp.json

Logs:

[DEBUG] 14:10:32.049 shell.go:Getenv:392 → NO DATA
[TRACE] 14:10:32.049 shell.go:Getenv(TERM_PROGRAM) - 15.167µs
[DEBUG] 14:10:32.049 shell.go:Getenv:392 → NO DATA
[TRACE] 14:10:32.049 shell.go:Getenv(XDG_CACHE_HOME) - 3.083µs
[TRACE] 14:10:32.049 shell_unix.go:CachePath() - 29.459µs
[DEBUG] 14:10:32.050 shell_unix.go:Platform:77 → darwin
[TRACE] 14:10:32.050 shell.go:resolveConfigPath() - 6.125µs
[TRACE] 14:10:32.050 shell.go:Init() - 589.542µs
[TRACE] 14:10:32.050 shell.go:Flags() - 0s
[TRACE] 14:10:32.051 config.go:loadConfig() - 567.583µs
[TRACE] 14:10:32.051 shell.go:Flags() - 42ns
[DEBUG] 14:10:32.051 shell.go:Getenv:392 → NO DATA
[TRACE] 14:10:32.051 shell.go:Getenv(OMP_CACHE_DISABLED) - 2µs
[TRACE] 14:10:32.051 shell.go:Shell() - 42ns
[DEBUG] 14:10:32.051 shell.go:Getenv:392 → 5.9
[TRACE] 14:10:32.051 shell.go:Getenv(POSH_SHELL_VERSION) - 1.75µs
[DEBUG] 14:10:32.051 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 14:10:32.051 text.go:Render:70 → Rendering template: {{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}
[TRACE] 14:10:32.051 shell_unix.go:Root() - 417ns
[TRACE] 14:10:32.051 shell.go:Shell() - 41ns
[TRACE] 14:10:32.051 shell.go:StatusCodes() - 42ns
[DEBUG] 14:10:32.051 shell_unix.go:IsWsl:35 → false
[TRACE] 14:10:32.051 shell_unix.go:IsWsl() - 3.292µs
[DEBUG] 14:10:32.051 shell.go:TemplateCache:813 ↓
    environment: [USER=deriamis SECURITYSESSIONID=186a6 COMMAND_MODE=unix2003 __CFBundleIdentifier=net.kovidgoyal.kitty PATH=/Users/deriamis/.local/share/rtx/installs/clojure/1.11.1.1347/bin:/Users/deriamis/.local/share/rtx/installs/java/openjdk-17.0.2/bin:/Users/deriamis/.local/share/rtx/installs/node/20.4.0/bin:/Users/deriamis/.local/share/rtx/installs/go/1.20.6/go/bin:/Users/deriamis/.local/share/rtx/installs/go/1.20.6/packages/bin:/Users/deriamis/.local/share/rtx/installs/erlang/26.0.2/bin:/Users/deriamis/.local/share/rtx/installs/elixir/1.15.4-otp-26/bin:/Users/deriamis/.local/share/rtx/installs/elixir/1.15.4-otp-26/.mix/escripts:/Users/deriamis/.local/share/rtx/installs/php/8.2.8/bin:/Users/deriamis/.local/share/rtx/installs/php/8.2.8/sbin:/Users/deriamis/.local/share/rtx/installs/php/8.2.8/.composer/vendor/bin:/Users/deriamis/.local/share/rtx/installs/lua/5.4.6/bin:/Users/deriamis/.local/share/rtx/installs/lua/5.4.6/luarocks/bin:/Users/deriamis/.local/share/rtx/installs/perl/5.38.0/bin:/Users/deriamis/.local/share/rtx/installs/ruby/3.2.2/bin:/Users/deriamis/.local/share/rtx/installs/python/3.11.4/bin:/Users/deriamis/.local/share/rtx/installs/sbcl/2.3.6/bin:/Users/deriamis/.local/share/rtx/installs/gleam/0.30.4/bin:/Users/deriamis/.local/share/rtx/installs/postgres/15.3/bin:/Users/deriamis/.local/share/rtx/installs/rebar/3.22.1/bin:/Users/deriamis/.local/bin:/Users/deriamis/bin:/Users/deriamis/.rd/bin:/Users/deriamis/.ghcup/bin:/Users/deriamis/.roswell/bin:/Users/deriamis/.cargo/bin:/Users/deriamis/.cache/rebar3/bin:/Users/deriamis/.yarn/bin:/Users/deriamis/.config/yarn/global/node_modules/.bin:/Users/deriamis/.gem/ruby/2.6.0/bin:/Users/deriamis/.dotnet/tools:/opt/local/bin:/opt/local/sbin:/opt/local/libexec/gnubin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/Applications/Little Snitch.app/Contents/Components:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/kitty.app/Contents/MacOS::/Users/deriamis/.fzf/bin HOME=/Users/deriamis SHELL=/opt/local/bin/zsh LaunchInstanceID=DB08B4CE-208E-49D0-A433-D643C5CDDA14 __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0 XPC_SERVICE_NAME=0 DISPLAY=/private/tmp/com.apple.launchd.Fr8lS9NjTo/org.macports:0 DBUS_LAUNCHD_SESSION_BUS_SOCKET=/private/tmp/com.apple.launchd.9q3lKAJpsn/unix_domain_listener SSH_AUTH_SOCK=/Users/deriamis/.ssh/agent.sock XPC_FLAGS=0x0 LOGNAME=deriamis TMPDIR=/var/folders/y2/8m9dv1512pb1x00vx_v0y55w0000gn/T/ MANPATH=/opt/local/share/man:/opt/homebrew/share/man:/usr/share/man:/usr/local/share/man:/usr/local/MacGPG2/share/man:/Applications/kitty.app/Contents/Resources/man:: LANG=en_US.UTF-8 KITTY_WINDOW_ID=5 WINDOWID=62 TERM=xterm-256color COLORTERM=truecolor KITTY_PID=1465 KITTY_PUBLIC_KEY=1:%z4N{A^&GzfFc0~;WIv)T|#1KUIJ#zgPfBK2arz? PWD=/Users/deriamis TERMINFO=/Applications/kitty.app/Contents/Resources/kitty/terminfo KITTY_INSTALLATION_DIR=/Applications/kitty.app/Contents/Resources/kitty SHLVL=1 OLDPWD=/Users/deriamis HOMEBREW_PREFIX=/opt/homebrew HOMEBREW_CELLAR=/opt/homebrew/Cellar HOMEBREW_REPOSITORY=/opt/homebrew INFOPATH=/opt/local/share/info:/opt/homebrew/share/info: MANPAGER=sh -c 'col -bx | bat -l man -p' MANROFFOPT=-c DOTNET_ROOT=/opt/local/share/dotnet RTX_SHELL=zsh KERL_BUILD_DOCS=yes TELEPORT_ADD_KEYS_TO_AGENT=no LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90: GCC_COLORS=error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01 GIT_AUTHOR_NAME=Ryan Egesdahl GIT_AUTHOR_EMAIL=deriamis@gmail.com GIT_COMMITTER_NAME=Ryan Egesdahl GIT_COMMITTER_EMAIL=deriamis@gmail.com WECHALLTOKEN=B1163-7D20D-E587D-A75E1-2AFD2-4BC7F WECHALLUSER=deriamis HISTFILE=/Users/deriamis/.local/share/zsh/history HISTSIZE=50000 SAVEHIST=10000 PAGER=less LESS=-R LSCOLORS=Gxfxcxdxbxegedabagacad POSH_THEME=/Users/deriamis/.poshthemes/powerlevel10k_poweruser.omp.json POSH_SHELL_VERSION=5.9 POSH_PID=51658 POWERLINE_COMMAND=oh-my-posh CONDA_PROMPT_MODIFIER=false POSH_PROMPT_COUNT=37 JAVA_HOME=/Users/deriamis/.local/share/rtx/installs/java/openjdk-17.0.2 LD_LIBRARY_PATH=/Users/deriamis/.local/share/rtx/installs/postgres/15.3/lib MIX_HOME=/Users/deriamis/.local/share/rtx/installs/elixir/1.15.4-otp-26/.mix GOPATH=/Users/deriamis/.local/share/rtx/installs/go/1.20.6/packages GOROOT=/Users/deriamis/.local/share/rtx/installs/go/1.20.6/go PGDATA=/Users/deriamis/.local/share/rtx/installs/postgres/15.3/data RUBYLIB=/Users/deriamis/.local/share/rtx/installs/ruby/3.2.2/lib/rubygems_plugin SBCL_HOME=/Users/deriamis/.local/share/rtx/installs/sbcl/2.3.6/lib/sbcl LUA_INIT=package.path = package.path .. ';/Users/deriamis/.local/share/rtx/installs/lua/5.4.6/share/lua/5.4/?.lua;/Users/deriamis/.local/share/rtx/installs/lua/5.4.6/share/lua/5.4/?/init.lua;/Users/deriamis/.local/share/rtx/installs/lua/5.4.6/luarocks/share/lua/5.4/?.lua;/Users/deriamis/.local/share/rtx/installs/lua/5.4.6/luarocks/share/lua/5.4/?/init.lua'
    package.cpath = package.cpath .. ';/Users/deriamis/.local/share/rtx/installs/lua/5.4.6/lib/lua/5.4/?.so;/Users/deriamis/.local/share/rtx/installs/lua/5.4.6/luarocks/lib/lua/5.4/?.so' MIX_ARCHIVES=/Users/deriamis/.local/share/rtx/installs/elixir/1.15.4-otp-26/.mix/archives COMPOSER_HOME=/Users/deriamis/.local/share/rtx/installs/php/8.2.8/.composer __RTX_DIFF=eAGtVk1v2kAQrXrsOT8gt5wygw0h9CNqDYkCFSkRIVFzQotZGSeL19o1lNwq9difkSpNpFb9Pa76Yzpr3CAiKnlJJA47h3nv7fObWb5cSzH8fB3xT1/v3ntnXr/ZOTpI9/BUc6VxyFXIxqFGENJnAvWIKY4qmWEY6YQJofGCTRnKmEcXw8ttZxdK4P5q7/fbrXrX6573j71eM31dHC6WOgkU1+jsQBlFOLg9an2ci2oUR+EinIUKHSCUyrZM4m23ijAOZzeHnUzRm+JYgSQctwRVjJl/yQKuCaTb6fTS6joggbw5Ptz3el5qoWHZlSFL2Pfuaf2cTE6bxUWoyeAKy+CCa4xFUwZ8rPuxmARhdHdSb7TnTu8Vx9QDX6ALZbKHPhaa8rZ96vVbH1q93883cssgZsloc29zqQTY3LJIhpgw3IEKEc1TmNf4Fuj0FDiU6TBZG4xEKOlf6nxGqDRqH6GOEFYC3svcevHPTv+BvfN6bX/NhyT2XL+Wa5lLAHP5D9G2fpiJ9rqNZuvs4CRtF8/af6camfJH4ZTrn43O0XHn5KBrneN4FGMNXKgh+HJM88bVN+Pqn2cbqVdcoi/kxYRWJG0e+oFTruziIIxsIFYs1AziZXEVkRxypJVVgVLW+qp462Lb0ckof7dObx5MnbFbxIcrwaIA3SqUwM2a68XpV8bDXOFJIsa1r8I40elucUWLUBkZtXUatem02PELyvsc45RHQ6kyOy3E0wCbDUD71kiwiMGikU4q24kGwSK/MeWAuMs1mOfXwjnzqOVvnCG1yF58lYxkRL2OA5XMLAta8+7lz6ChtRk4wdkYS1Au5aw2kpf+LFkSKz5giq7ruuCY6/4FN+aYUA __RTX_WATCH=eAFtzj0KwjAYxvEOvYGrgpuTjaXQjzM4OzmEkL41gTTRvKV0cqiX8ALi4lAv4BFcpXgBj6HiJM328Aw//u2pkArw0M/ICsEiycFKVkokATe6kBtiq4b8ZlCZUrUdAkeKUnOgsDVc3MH39lfNtPm/x89z008HrDKcKYKCWfjaLm+U7hxe9lgfbwOuMkbN60+5NBpdmO8tHVg0eS0uoGtaM0sFQ9ElcZrHSc7CkGUQR+kbF7tyfg export= _=/Users/deriamis/bin/oh-my-posh]
[TRACE] 14:10:32.051 shell.go:GOOS() - 125ns
[DEBUG] 14:10:32.051 shell.go:Pwd:422 → /Users/deriamis
[TRACE] 14:10:32.051 shell.go:Pwd() - 17.75µs
[TRACE] 14:10:32.051 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 41ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 0s
[TRACE] 14:10:32.051 shell.go:GOOS() - 0s
[TRACE] 14:10:32.051 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 42ns
[DEBUG] 14:10:32.051 shell.go:User:543 → deriamis
[TRACE] 14:10:32.051 shell.go:User() - 1.833µs
[DEBUG] 14:10:32.051 shell.go:Host:555 → zatanna
[TRACE] 14:10:32.051 shell.go:Host() - 7.958µs
[TRACE] 14:10:32.051 shell.go:GOOS() - 41ns
[DEBUG] 14:10:32.051 shell.go:Getenv:392 → 1
[TRACE] 14:10:32.051 shell.go:Getenv(SHLVL) - 1.792µs
[TRACE] 14:10:32.051 shell.go:TemplateCache() - 135.833µs
[DEBUG] 14:10:32.051 shell.go:Getenv:392 → NO DATA
[TRACE] 14:10:32.051 shell.go:Getenv(POSH_CURSOR_LINE) - 2.75µs
[DEBUG] 14:10:32.051 shell.go:Getenv:392 → NO DATA
[TRACE] 14:10:32.051 shell.go:Getenv(POSH_CURSOR_COLUMN) - 1.375µs
[TRACE] 14:10:32.051 shell.go:Flags() - 41ns
[TRACE] 14:10:32.051 shell.go:Flags() - 42ns
[TRACE] 14:10:32.051 shell.go:Shell() - 41ns
[TRACE] 14:10:32.051 shell.go:Shell() - 42ns
[TRACE] 14:10:32.051 shell.go:Flags() - 42ns
[TRACE] 14:10:32.051 shell.go:Pwd() - 42ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 42ns
[DEBUG] 14:10:32.051 segment.go:SetEnabled:497 → Segment: Time
[DEBUG] 14:10:32.051 properties.go:GetString:28 → 15:04:05
[TRACE] 14:10:32.051 shell.go:TemplateCache() - 83ns
[TRACE] 14:10:32.051 shell.go:Flags() - 125ns
[TRACE] 14:10:32.051 shell.go:Flags() - 42ns
[TRACE] 14:10:32.051 shell.go:Pwd() - 42ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 42ns
[DEBUG] 14:10:32.051 segment.go:SetEnabled:497 → Segment: Go
[DEBUG] 14:10:32.051 properties.go:GetStringArray:52 → extensions: [*.go go.mod]
[DEBUG] 14:10:32.051 properties.go:GetStringArray:52 → folders: []
[DEBUG] 14:10:32.051 properties.go:GetString:28 → environment
[DEBUG] 14:10:32.051 properties.go:GetBool:22 → home_enabled: false
[TRACE] 14:10:32.051 shell.go:Pwd() - 42ns
[TRACE] 14:10:32.051 shell.go:Flags() - 125ns
[TRACE] 14:10:32.051 shell.go:Pwd() - 42ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 41ns
[TRACE] 14:10:32.051 shell.go:Pwd() - 84ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 84ns
[DEBUG] 14:10:32.051 segment.go:SetEnabled:497 → Segment: Python
[DEBUG] 14:10:32.051 segment.go:SetEnabled:497 → Segment: Dotnet
[TRACE] 14:10:32.051 shell.go:Flags() - 458ns
[DEBUG] 14:10:32.051 properties.go:GetStringArray:52 → extensions: [*.cs *.csx *.vb *.sln *.slnf *.csproj *.vbproj *.fs *.fsx *.fsproj global.json]
[DEBUG] 14:10:32.051 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 14:10:32.051 properties.go:GetStringArray:52 → folders: []
[DEBUG] 14:10:32.051 properties.go:GetBool:22 → home_enabled: false
[TRACE] 14:10:32.051 shell.go:Pwd() - 41ns
[DEBUG] 14:10:32.051 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv env venv-win pyenv-win]
[TRACE] 14:10:32.051 shell.go:Flags() - 42ns
[DEBUG] 14:10:32.051 properties.go:GetBool:22 → home_enabled: true
[TRACE] 14:10:32.051 shell.go:Pwd() - 42ns
[TRACE] 14:10:32.051 shell.go:Pwd() - 41ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 41ns
[DEBUG] 14:10:32.051 segment.go:SetEnabled:497 → Segment: Executiontime
[DEBUG] 14:10:32.051 properties.go:GetBool:22 → fetch_virtual_env: true
[DEBUG] 14:10:32.051 properties.go:GetBool:22 → always_enabled: false
[TRACE] 14:10:32.051 shell.go:ExecutionTime() - 42ns
[DEBUG] 14:10:32.051 properties.go:GetFloat64:34 → threshold: 500.000000
[TRACE] 14:10:32.051 shell.go:Flags() - 42ns
[TRACE] 14:10:32.051 shell.go:Pwd() - 333ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 0s
[TRACE] 14:10:32.051 shell.go:Pwd() - 42ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 42ns
[DEBUG] 14:10:32.051 segment.go:SetEnabled:497 → Segment: Session
[DEBUG] 14:10:32.051 shell.go:Getenv:392 → NO DATA
[TRACE] 14:10:32.051 shell.go:Getenv(SSH_CONNECTION) - 1.709µs
[DEBUG] 14:10:32.051 segment.go:SetEnabled:497 → Segment: Node
[DEBUG] 14:10:32.051 shell.go:Getenv:392 → NO DATA
[TRACE] 14:10:32.051 shell.go:Getenv(SSH_CLIENT) - 1.541µs
[TRACE] 14:10:32.051 shell.go:TemplateCache() - 166ns
[TRACE] 14:10:32.051 shell.go:Flags() - 0s
[TRACE] 14:10:32.051 shell.go:Flags() - 334ns
[TRACE] 14:10:32.051 shell.go:Pwd() - 42ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 42ns
[DEBUG] 14:10:32.051 segment.go:SetEnabled:497 → Segment: Ruby
[DEBUG] 14:10:32.051 properties.go:GetStringArray:52 → extensions: [*.rb Rakefile Gemfile]
[DEBUG] 14:10:32.051 properties.go:GetStringArray:52 → folders: []
[DEBUG] 14:10:32.051 properties.go:GetBool:22 → home_enabled: false
[TRACE] 14:10:32.051 shell.go:Pwd() - 41ns
[DEBUG] 14:10:32.051 properties.go:GetString:28 → {{ .Code }}
[TRACE] 14:10:32.051 shell.go:Pwd() - 83ns
[TRACE] 14:10:32.051 shell.go:GOOS() - 83ns
[DEBUG] 14:10:32.051 segment.go:SetEnabled:497 → Segment: Exit
[TRACE] 14:10:32.052 shell.go:StatusCodes() - 84ns
[DEBUG] 14:10:32.052 text.go:Render:70 → Rendering template: {{ .Code }}
[DEBUG] 14:10:32.052 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .npmrc .vue]
[DEBUG] 14:10:32.052 properties.go:GetStringArray:52 → folders: []
[DEBUG] 14:10:32.052 properties.go:GetBool:22 → home_enabled: false
[TRACE] 14:10:32.052 shell.go:Pwd() - 166ns
[DEBUG] 14:10:32.052 shell.go:CommandPath:594 → /Users/deriamis/.local/share/rtx/installs/python/3.11.4/bin/python
[TRACE] 14:10:32.052 shell.go:CommandPath(python) - 691.667µs
[DEBUG] 14:10:32.052 shell.go:HasFilesInDir:458 → false
[TRACE] 14:10:32.052 shell.go:HasFilesInDir(pyvenv.cfg) - 20.208µs
[DEBUG] 14:10:32.052 shell.go:HasFilesInDir:458 → false
[TRACE] 14:10:32.052 shell.go:HasFilesInDir(pyvenv.cfg) - 7.292µs
[DEBUG] 14:10:32.052 shell.go:Getenv:392 → NO DATA
[TRACE] 14:10:32.052 shell.go:Getenv(VIRTUAL_ENV) - 1.875µs
[DEBUG] 14:10:32.052 shell.go:Getenv:392 → NO DATA
[TRACE] 14:10:32.052 shell.go:Getenv(CONDA_ENV_PATH) - 6.959µs
[DEBUG] 14:10:32.052 shell.go:Getenv:392 → NO DATA
[TRACE] 14:10:32.052 shell.go:Getenv(CONDA_DEFAULT_ENV) - 68.667µs
[TRACE] 14:10:32.052 shell.go:TemplateCache() - 250ns
[DEBUG] 14:10:32.052 properties.go:GetBool:22 → always_enabled: true
[TRACE] 14:10:32.052 shell.go:TemplateCache() - 250ns
[DEBUG] 14:10:32.052 text.go:Render:70 → Rendering template:  {{ .CurrentDate | date .Format }}<#268bd2>  </>
[DEBUG] 14:10:32.052 text.go:Render:70 → Rendering template: {{ if gt .Code 0 }}<#dc322f></><#303030,#dc322f> ✘ {{ .Code }} {{ else }}</><#303030></><#859900,#303030> ✓ </><#7e8082,#303030></>{{ end }}
[DEBUG] 14:10:32.052 text.go:Render:70 → Rendering template: {{ if .SSHSession }} {{ if .Root }}<#dc322f>{{ end }}{{ .UserName }}<#657b83>@{{ .HostName }} <#7e8082>{{ end }}
[TRACE] 14:10:32.052 shell.go:TemplateCache() - 125ns
[TRACE] 14:10:32.052 shell.go:Shell() - 333ns
[TRACE] 14:10:32.052 shell.go:TemplateCache() - 417ns
[TRACE] 14:10:32.052 shell.go:Shell() - 42ns
[TRACE] 14:10:32.052 shell.go:TemplateCache() - 375ns
[TRACE] 14:10:32.052 shell.go:TemplateCache() - 83ns
[TRACE] 14:10:32.052 shell.go:Shell() - 42ns
[DEBUG] 14:10:32.052 text.go:Render:70 → Rendering template: diamond
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template: diamond
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template: diamond
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template: diamond
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template: powerline
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template: diamond
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template: plain
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template: diamond
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template: diamond
[TRACE] 14:10:32.053 shell.go:Shell() - 42ns
[TRACE] 14:10:32.053 shell.go:Shell() - 42ns
[TRACE] 14:10:32.053 shell.go:Shell() - 0s
[TRACE] 14:10:32.053 shell.go:Shell() - 0s
[TRACE] 14:10:32.053 shell.go:Flags() - 42ns
[DEBUG] 14:10:32.053 properties.go:GetString:28 → {{ .Code }}
[TRACE] 14:10:32.053 shell.go:Pwd() - 41ns
[TRACE] 14:10:32.053 shell.go:Flags() - 166ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[DEBUG] 14:10:32.053 segment.go:SetEnabled:497 → Segment: Exit
[TRACE] 14:10:32.053 shell.go:Pwd() - 83ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[DEBUG] 14:10:32.053 segment.go:SetEnabled:497 → Segment: Path
[TRACE] 14:10:32.053 shell.go:Pwd() - 41ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 41ns
[TRACE] 14:10:32.053 shell.go:Pwd() - 42ns
[TRACE] 14:10:32.053 shell.go:Flags() - 125ns
[DEBUG] 14:10:32.053 segment.go:SetEnabled:497 → Segment: Git
[TRACE] 14:10:32.053 shell.go:Shell() - 42ns
[TRACE] 14:10:32.053 shell.go:Shell() - 41ns
[DEBUG] 14:10:32.053 shell_unix.go:IsWsl:35 → false
[TRACE] 14:10:32.053 shell_unix.go:IsWsl() - 2.75µs
[TRACE] 14:10:32.053 shell.go:Pwd() - 84ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[DEBUG] 14:10:32.053 segment.go:SetEnabled:497 → Segment: Os
[TRACE] 14:10:32.053 shell.go:GOOS() - 41ns
[TRACE] 14:10:32.053 shell.go:Flags() - 84ns
[DEBUG] 14:10:32.053 properties.go:GetString:28 → 
[DEBUG] 14:10:32.053 properties.go:GetBool:22 → mapped_locations_enabled: true
[TRACE] 14:10:32.053 shell.go:TemplateCache() - 125ns
[DEBUG] 14:10:32.053 properties.go:GetString:28 → 
[TRACE] 14:10:32.053 shell.go:Pwd() - 42ns
[DEBUG] 14:10:32.053 properties.go:GetString:28 → 
[TRACE] 14:10:32.053 shell.go:Flags() - 42ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 0s
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[DEBUG] 14:10:32.053 segment.go:SetEnabled:497 → Segment: Text
[TRACE] 14:10:32.053 shell.go:Pwd() - 41ns
[DEBUG] 14:10:32.053 properties.go:GetString:28 → <#2aa198></> ~
[TRACE] 14:10:32.053 shell.go:GOOS() - 41ns
[TRACE] 14:10:32.053 shell.go:TemplateCache() - 125ns
[DEBUG] 14:10:32.053 properties.go:GetKeyValueMap:46 → mapped_locations: map[/home/deriamis:<#2aa198></> ~]
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template: /home/deriamis
[TRACE] 14:10:32.053 shell.go:GOOS() - 0s
[TRACE] 14:10:32.053 shell.go:PathSeparator() - 0s
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 41ns
[DEBUG] 14:10:32.053 segment.go:SetEnabled:497 → Segment: Text
[TRACE] 14:10:32.053 shell.go:TemplateCache() - 166ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 125ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.053 shell.go:PathSeparator() - 42ns
[TRACE] 14:10:32.053 shell.go:PathSeparator() - 42ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 0s
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.053 shell.go:PathSeparator() - 41ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 0s
[TRACE] 14:10:32.053 shell.go:PathSeparator() - 41ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 41ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.053 shell.go:PathSeparator() - 42ns
[TRACE] 14:10:32.053 shell.go:Pwd() - 42ns
[DEBUG] 14:10:32.053 shell_unix.go:IsWsl:35 → false
[TRACE] 14:10:32.053 shell_unix.go:IsWsl() - 2.75µs
[TRACE] 14:10:32.053 shell.go:StackCount() - 41ns
[TRACE] 14:10:32.053 shell.go:Flags() - 84ns
[TRACE] 14:10:32.053 shell_unix.go:DirIsWritable(/Users/deriamis) - 19.625µs
[TRACE] 14:10:32.053 shell.go:TemplateCache() - 333ns
[TRACE] 14:10:32.053 shell.go:Pwd() - 83ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[DEBUG] 14:10:32.053 segment.go:SetEnabled:497 → Segment: Path
[TRACE] 14:10:32.053 shell.go:Pwd() - 41ns
[TRACE] 14:10:32.053 shell.go:Shell() - 0s
[TRACE] 14:10:32.053 shell.go:Shell() - 0s
[DEBUG] 14:10:32.053 shell.go:CommandPath:594 → /opt/local/bin/git
[DEBUG] 14:10:32.053 properties.go:GetBool:22 → mapped_locations_enabled: true
[TRACE] 14:10:32.053 shell.go:CommandPath(git) - 309µs
[DEBUG] 14:10:32.053 properties.go:GetString:28 → 
[TRACE] 14:10:32.053 shell.go:HasCommand(git) - 312µs
[DEBUG] 14:10:32.053 properties.go:GetString:28 → 
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.053 shell.go:Pwd() - 41ns
[DEBUG] 14:10:32.053 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 14:10:32.053 shell.go:PathSeparator() - 41ns
[ERROR] 14:10:32.053 shell.go:HasParentFilePath:728 → stat .git: no such file or directory
[TRACE] 14:10:32.053 shell.go:GOOS() - 84ns
[TRACE] 14:10:32.053 shell.go:HasParentFilePath(.git) - 41.459µs
[TRACE] 14:10:32.053 shell.go:GOOS() - 41ns
[DEBUG] 14:10:32.053 properties.go:GetBool:22 → fetch_bare_info: false
[TRACE] 14:10:32.053 shell.go:GOOS() - 84ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.053 shell.go:PathSeparator() - 0s
[TRACE] 14:10:32.053 shell.go:PathSeparator() - 42ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.053 shell.go:PathSeparator() - 42ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 42ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 41ns
[TRACE] 14:10:32.053 shell.go:PathSeparator() - 41ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 41ns
[TRACE] 14:10:32.053 shell.go:GOOS() - 41ns
[TRACE] 14:10:32.053 shell.go:PathSeparator() - 41ns
[TRACE] 14:10:32.053 shell.go:Pwd() - 83ns
[DEBUG] 14:10:32.053 shell_unix.go:IsWsl:35 → false
[TRACE] 14:10:32.053 shell_unix.go:IsWsl() - 2.333µs
[TRACE] 14:10:32.053 shell.go:StackCount() - 42ns
[TRACE] 14:10:32.053 shell.go:TemplateCache() - 209ns
[DEBUG] 14:10:32.053 properties.go:GetBool:22 → always_enabled: true
[TRACE] 14:10:32.053 shell.go:TemplateCache() - 83ns
[TRACE] 14:10:32.053 shell_unix.go:DirIsWritable(/Users/deriamis) - 16.708µs
[TRACE] 14:10:32.053 shell.go:TemplateCache() - 83ns
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template: ❯
[TRACE] 14:10:32.053 shell.go:Shell() - 41ns
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template:  {{if glob ".git"}}<#268bd2>➼</> {{ if .Segments.Git.IsWorkTree }}{{ path .Folder .Segments.Git.Dir }}{{ else }}{{ path .Folder .Location }}{{ end }}{{ else if or (eq (dir .Location) "/home") (eq (dir .Location) "/Users") (eq (dir .Location) "C:\\Users") }}<#2aa196></> ~{{ if not (eq (base .Location) .UserName) }}{{ path .Folder .Location }}{{ end }}{{ else if or (glob ".bzr") (glob ".citc") (glob ".hg") (glob ".node-version") (glob ".python-version") (glob ".go-version") (glob ".ruby-version") (glob ".lua-version") (glob ".lua-version") (glob ".java-version") (glob ".perl-version") (glob ".php-version") (glob ".ruby-version") (glob ".tool-version") (glob ".tool-versions") (glob ".svn") (glob ".terraform") (glob "CVS") (glob "Cargo.toml") (glob "composer.json") (glob "go.mod") (glob "Gopkg.yml") (glob "stack.yaml") (glob "*.csproj") (glob "*.fsproj") (glob "*.xproj") (glob "mix.exs") (glob "rebar.config") (glob "erlang.mk") (glob "pom.xml") (glob "build.gradle") (glob "build.sbt") (glob "deps.edn") (glob "project.clj") (glob "build.boot") (glob "Project.toml") (glob "Manifest.toml") (glob ".luacheckrc") (glob ".stylua.toml") (glob "selene.toml") (glob "package.json") (glob "dune") (glob "dune-project") (glob "jbuild") (glob ".merlin") (glob "pyproject.toml") (glob "setup.py") (glob "Pipfile") (glob "meson.build") (glob "SConstruct") (glob "Makefile.PL") (glob "Build.PL") (glob "META.json") (glob "Gemfile") }}<#268bd2>➼</> {{ path .Folder .Location }}{{ else }}{{ path .Path .Location }}{{ end }} 
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template:  {{ if .WSL }}WSL at {{ end }}{{.Icon}}</> 
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template: {{ if not .Writable }}<#303030,#dc322f></><#fafafa,#dc322f> 󰉐 </><#dc322f,#303030>{{ end }}
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template: 
[TRACE] 14:10:32.053 shell.go:Shell() - 41ns
[DEBUG] 14:10:32.053 text.go:Render:70 → Rendering template: {{ if not .Root }}{{ else }}<#303030,#dc322f></><#fafafa,#dc322f>  </><#dc322f,#303030>{{end}}
[TRACE] 14:10:32.054 shell.go:TemplateCache() - 167ns
[TRACE] 14:10:32.054 shell.go:TemplateCache() - 167ns
[TRACE] 14:10:32.054 shell.go:Shell() - 42ns
[TRACE] 14:10:32.054 shell.go:TemplateCache() - 208ns
[TRACE] 14:10:32.054 shell.go:Shell() - 83ns
[TRACE] 14:10:32.054 shell.go:TemplateCache() - 83ns
[TRACE] 14:10:32.054 shell.go:Shell() - 84ns
[TRACE] 14:10:32.054 shell.go:TemplateCache() - 208ns
[TRACE] 14:10:32.054 shell.go:Shell() - 125ns
[DEBUG] 14:10:32.054 text.go:Render:70 → Rendering template: diamond
[DEBUG] 14:10:32.054 text.go:Render:70 → Rendering template: diamond
[DEBUG] 14:10:32.054 text.go:Render:70 → Rendering template: powerline
[DEBUG] 14:10:32.054 text.go:Render:70 → Rendering template: powerline
[DEBUG] 14:10:32.054 text.go:Render:70 → Rendering template: powerline
[DEBUG] 14:10:32.054 text.go:Render:70 → Rendering template: diamond
[DEBUG] 14:10:32.054 text.go:Render:70 → Rendering template: {{ if gt .Code 0 }}#dc322f{{ end }}
[TRACE] 14:10:32.054 shell.go:TemplateCache() - 42ns
[DEBUG] 14:10:32.054 text.go:Render:70 → Rendering template: diamond
[TRACE] 14:10:32.054 shell.go:Shell() - 0s
[TRACE] 14:10:32.054 shell.go:Shell() - 42ns
[TRACE] 14:10:32.054 shell.go:Flags() - 42ns
[TRACE] 14:10:32.054 shell.go:Shell() - 42ns
[TRACE] 14:10:32.054 shell.go:Shell() - 42ns
[TRACE] 14:10:32.054 shell.go:Flags() - 0s
[DEBUG] 14:10:32.054 shell.go:Getenv:392 → NO DATA
[TRACE] 14:10:32.054 shell.go:Getenv(XDG_CACHE_HOME) - 2.417µs
[TRACE] 14:10:32.054 shell_unix.go:CachePath() - 36.584µs
[TRACE] 14:10:32.054 shell.go:Flags() - 41ns
JanDeDobbeleer commented 1 year ago

@deriamis seems like in your first segment's template you had an issue with a leading closing tag. That syntax isn't supported so the engine is acting up in that case. Making the tag part of the correct if statement solves the issue:

{
  "type": "status",
  "style": "diamond",
  "foreground": "#303030",
  "background": "transparent",
  "template": "{{ if gt .Code 0 }}<#dc322f>\ue0b2</><#303030,#dc322f> \u2718 {{ .Code }} \ue0b2</>{{ else }}<#303030>\ue0b2</><#859900,#303030> \u2713 </><#7e8082,#303030>\ue0b3</>{{ end }}",
  "properties": {
    "always_enabled": true
  }
}
deriamis commented 1 year ago

@deriamis seems like in your first segment's template you had an issue with a leading closing tag. That syntax isn't supported so the engine is acting up in that case. Making the tag part of the correct if statement solves the issue:

I was using what you're calling a "closing tag" as a "reset". I think I see now in several places where I might be causing a problem, since this is also happening in my transient prompt as well. It would be nice if this caused an error or something. I might open a pull request to address it if I get the time. Thanks!

github-actions[bot] commented 8 months ago

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.