JanDeDobbeleer / oh-my-posh

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

Status segment hangs with a condition #5816

Closed stevenxxiu closed 2 weeks ago

stevenxxiu commented 2 weeks ago

Code of Conduct

What happened?

The latest version v24.0.5 hangs when the status segment has some condition.

Theme

Minimal config:

# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version: 3
blocks:
  - type: prompt
    segments:
      - type: status
        templates:
          - '{{ if .Segments.Contains "Executiontime" }}a{{ else }}b{{ end }}'

What OS are you seeing the problem on?

Arch Linux

Which shell are you using?

Nushell

Log output

This hangs, so I can't get log output.