Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cached prompt not updated immediately for git worktree #6085

Closed
1 task done
heaths opened this issue Jan 10, 2025 · 1 comment · Fixed by #6086
Closed
1 task done

Cached prompt not updated immediately for git worktree #6085

heaths opened this issue Jan 10, 2025 · 1 comment · Fixed by #6086
Assignees
Labels
🐛 bug Something isn't working

Comments

@heaths
Copy link
Contributor

heaths commented Jan 10, 2025

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

Though I'm positive I tested this (perhaps not?), my changes to effectively invalidate the cache for the git segment don't work for worktrees. That is, if I switch branches, the cache timeout still applies. This works correctly for primary repos.

The problem is in

ref := g.FileContents(dir.Path, "HEAD")
. I expected dir.Path at that point to be the resolved primary repo or worktree thereunder directory, but isn't. I did a lot of refactoring to reduce duplicate code and reduce file reads, so at least a few iterations I know it worked but maybe the last iteration I committed has the ordering wrong.

That is, a worktree's .git root file will point to the primary repo's .git/worktrees/{worktree-name}/ directory and that's where we need to read the HEAD file.

Theme

theme.omp.yml

# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version: 3
console_title_template: >-
  {{ $pwd := .PWD -}}
  {{ .Shell }} in {{ with $repo := .Segments.Git -}}
    {{ if (gt (sub (len $pwd) (len $repo.Dir)) 20) -}}
      git:{{ $repo.RepoName }}/…/{{ base $pwd }}
    {{- else -}}
      git:{{ $repo.RepoName }}{{ trimPrefix $repo.Dir $pwd}}
    {{- end }}
  {{- else -}}
    {{ .Folder }}
  {{- end }}
final_space: true
shell_integration: true

palette:
  # https://colorkit.co/palette/02944e-4f0193-f1c516-eb850d-e44403-05a3e2-f7f6f5-7c7b7b-464646-101010/
  green: "#02944e"
  purple: "#4f0193"
  darkPurple: "#940248" # not in palette
  yellow: "#f1c516"
  orange: "#eb850d"
  red: "#e44403"
  blue: "#05a3e2"
  white: "#f7f6f5"
  gray: "#7c7b7b"
  darkGray: "#464646"
  black: "#101010"

blocks:
- type: prompt
  alignment: left
  segments:
  - type: shell
    style: diamond
    foreground: p:white
    background: p:purple
    properties:
      mapped_shell_names:
        powershell: PS
        pwsh: PS

  - type: python
    style: powerline
    powerline_symbol: ""
    foreground: p:white
    background: p:darkPurple
    template: "  {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} "

  - type: executiontime
    style: powerline
    powerline_symbol: ""
    foreground: p:black
    background: p:orange
    properties:
      style: austin

  - type: status
    style: powerline
    powerline_symbol: ""
    foreground: p:white
    background: p:blue
    background_templates:
    - "{{ if gt .Code 0 }}p:red{{ end }}"
    properties:
      always_enable: true

  - type: session
    style: powerline
    powerline_symbol: ""
    foreground: p:white
    background: p:blue
    template: " {{ if .SSHSession }} {{ end }}{{ .UserName }} "

  - type: root
    style: powerline
    powerline_symbol: ""
    foreground: p:white
    background: p:red
    template: "  "

  - type: path
    style: powerline
    powerline_symbol: ""
    foreground: p:black
    background: p:gray
    template: ' {{ path .Path .Location }} {{ repeat .StackCount "" }}'
    properties:
      style: full

- type: prompt
  alignment: left
  newline: true
  segments:
  - type: git
    cache:
      duration: 30s
      strategy: folder
    style: diamond
    trailing_diamond: ""
    foreground: p:white
    foreground_templates:
    - "{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}"
    - "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}"
    - "{{ if gt .Ahead 0 }}p:black{{ end }}"
    background: p:green
    background_templates:
    - "{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}"
    - "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}"
    - "{{ if gt .Ahead 0 }}p:yellow{{ end }}"
    - "{{ if gt .Behind 0 }}p:orange{{ end }}"
    template: " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }}{{ end }}{{
      .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed
      }}  {{ .Working.String }}{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String
      }}{{ end }} "
    properties:
      branch_icon: "εéá "
      fetch_status: true

debug_prompt:
  background: transparent
  template: "<p:white,p:red>  DBG </><p:red,transparent></> "

secondary_prompt:
  background: transparent
  template: "<p:black,p:gray> </><p:gray,transparent></> "

# vim: set et sw=2:

What OS are you seeing the problem on?

Windows, Linux, macOS

Which shell are you using?

bash

Log output

Version: 24.18.0

Shell: bash (5.1.16(1)-release)

Prompt:

�]133;D;0��]133;A� bash εé░ heaths εé░ �]8;;file:�\~/src/autorest.rust/packages/typespec-rust�]8;;\ εé░
 εéá main Γëí εé░ �]133;B�

Segments:

ConsoleTitle(true)                         -   0 ms
Shell(true)                                -   0 ms
Python(false)                              -  99 ms
Executiontime(false)                       -   0 ms
Status(false)                              -   0 ms
Session(true)                              -   2 ms
Root(false)                                -   0 ms
Path(true)                                 -   1 ms
Git(true)                                  -   0 ms

Run duration: 103.115121ms

Cache path: /home/heaths/.cache/oh-my-posh

Config path: /home/heaths/.config/oh-my-posh/theme.omp.yml

Logs:

�[38;2;191;207;240m[DEBUG] �[38;2;156;231;201m17:07:29.847 �[0mcommand.go:execute:989�[38;2;156;231;201m ΓåÆ�[0m debug mode enabled
�[38;2;204;137;214m[TRACE] �[38;2;156;231;201m17:07:29.847 �[0mdebug.go() - �[38;2;156;231;201m1.144┬╡s�[0m
�[38;2;204;137;214m[TRACE] �[38;2;156;231;201m17:07:29.848 �[0mload.go:Load() - �[38;2;156;231;201m1.032287ms�[0m
�[38;2;204;137;214m[TRACE] �[38;2;156;231;201m17:07:29.848 �[0mdebug.go() - �[38;2;156;231;201m1.045213ms�[0m
[DEBUG] 17:07:29.848 debug.go:52 → plain mode enabled
[DEBUG] 17:07:29.848 home.go:Home:16 → /home/heaths
[TRACE] 17:07:29.848 terminal.go() - 12.847┬╡s
[DEBUG] 17:07:29.848 terminal.go:59 → loading cache file: /home/heaths/.cache/oh-my-posh/omp.cache
[DEBUG] 17:07:29.848 terminal.go:59 → loading cache key: is_wsl
[DEBUG] 17:07:29.848 terminal.go:59 → loading cache key: environment_platform
[TRACE] 17:07:29.848 terminal.go(/home/heaths/.cache/oh-my-posh/omp.cache) - 51.511┬╡s
[DEBUG] 17:07:29.848 home.go:Home:16 → /home/heaths
[TRACE] 17:07:29.848 terminal.go() - 6.068┬╡s
[DEBUG] 17:07:29.848 terminal.go:59 → loading cache file: /home/heaths/.cache/oh-my-posh/omp.cache.a2ca2487-dcf9-481e-a5d9-52d1d14c703d
[DEBUG] 17:07:29.848 terminal.go:59 → loading cache key: prompt_count_cache
[DEBUG] 17:07:29.848 terminal.go:59 → loading cache key: segment_cache_Git_/home/heaths/src/autorest.rust/.git@main
[DEBUG] 17:07:29.848 terminal.go:59 → loading cache key: template_cache
[TRACE] 17:07:29.848 terminal.go(/home/heaths/.cache/oh-my-posh/omp.cache.a2ca2487-dcf9-481e-a5d9-52d1d14c703d) - 80.278┬╡s
[TRACE] 17:07:29.848 terminal.go:Init() - 347ns
[TRACE] 17:07:29.848 terminal.go() - 37ns
[DEBUG] 17:07:29.848 terminal.go:Init:67 → /home/heaths/src/autorest.rust/packages/typespec-rust
[TRACE] 17:07:29.848 terminal.go:Init() - 10.362┬╡s
[TRACE] 17:07:29.848 debug.go() - 203.745┬╡s
[TRACE] 17:07:29.848 init.go:Init() - 53ns
[TRACE] 17:07:29.848 cache.go:loadCache() - 37ns
[TRACE] 17:07:29.848 cache.go:loadCache() - 84.564┬╡s
[DEBUG] 17:07:29.848 debug.go:61 → terminal program: Windows Terminal
[DEBUG] 17:07:29.848 debug.go:61 → terminal shell: shell
[DEBUG] 17:07:29.848 config.go:MakeColors:58 → NO DATA
[TRACE] 17:07:29.848 config.go:MakeColors(OMP_CACHE_DISABLED) - 5.512┬╡s
[TRACE] 17:07:29.849 colors.go:MakeColors() - 643ns
[TRACE] 17:07:29.849 debug.go:PrintDebug() - 96ns
[DEBUG] 17:07:29.849 debug.go:PrintDebug:16 → 5.1.16(1)-release
[TRACE] 17:07:29.849 debug.go:PrintDebug(POSH_SHELL_VERSION) - 8.421┬╡s
[DEBUG] 17:07:29.849 debug.go:72 → segment: Title
[TRACE] 17:07:29.849 engine.go:getTitleTemplateText({{ $pwd := .PWD -}} {{ .Shell }} in {{ with $repo := .Segments.Git -}}
  {{ if (gt (sub (len $pwd) (len $repo.Dir)) 20) -}}
    git:{{ $repo.RepoName }}/…/{{ base $pwd }}
  {{- else -}}
    git:{{ $repo.RepoName }}{{ trimPrefix $repo.Dir $pwd}}
  {{- end }}
{{- else -}}
  {{ .Folder }}
{{- end }}) - 342.77┬╡s
[TRACE] 17:07:29.849 primary.go:needsPrimaryRightPrompt() - 43ns
[TRACE] 17:07:29.849 primary.go:writePrimaryPrompt() - 130ns
[TRACE] 17:07:29.849 primary.go:writePrimaryPrompt() - 23ns
[DEBUG] 17:07:29.849 terminal.go:CursorPosition:583 → NO DATA
[TRACE] 17:07:29.849 terminal.go:CursorPosition(POSH_CURSOR_LINE) - 6.171┬╡s
[DEBUG] 17:07:29.849 terminal.go:CursorPosition:587 → NO DATA
[TRACE] 17:07:29.849 terminal.go:CursorPosition(POSH_CURSOR_COLUMN) - 2.511┬╡s
[TRACE] 17:07:29.849 primary.go:writePrimaryPrompt() - 34ns
[TRACE] 17:07:29.849 primary.go:writePrimaryPrompt() - 23ns
[TRACE] 17:07:29.849 segment.go:Execute() - 238ns
[DEBUG] 17:07:29.849 home.go:Home:16 → /home/heaths
[TRACE] 17:07:29.849 segment.go:Execute() - 209ns
[TRACE] 17:07:29.849 terminal.go:DirMatchesOneOf() - 79ns
[DEBUG] 17:07:29.849 home.go:Home:16 → /home/heaths
[DEBUG] 17:07:29.849 segment.go:Execute:110 → segment: Path
[TRACE] 17:07:29.849 terminal.go:DirMatchesOneOf() - 76ns
[DEBUG] 17:07:29.849 segment.go:Execute:112 → no toggles found
[DEBUG] 17:07:29.849 segment.go:Execute:110 → segment: Executiontime
[DEBUG] 17:07:29.849 segment.go:Execute:112 → no toggles found
[TRACE] 17:07:29.849 segment.go:Execute() - 303ns
[DEBUG] 17:07:29.849 home.go:Home:16 → /home/heaths
[TRACE] 17:07:29.849 terminal.go:DirMatchesOneOf() - 78ns
[DEBUG] 17:07:29.849 segment.go:Execute:110 → segment: Shell
[DEBUG] 17:07:29.849 segment.go:Execute:112 → no toggles found
[DEBUG] 17:07:29.849 executiontime.go:Enabled:55 → always_enabled: false
[DEBUG] 17:07:29.849 shell.go:Enabled:26 → mapped_shell_names: map[powershell:PS pwsh:PS]
[TRACE] 17:07:29.849 executiontime.go:Enabled() - 124ns
[TRACE] 17:07:29.849 shell.go:Enabled() - 87ns
[TRACE] 17:07:29.849 shell.go:Enabled() - 51ns
[DEBUG] 17:07:29.849 executiontime.go:Enabled:57 → threshold: 500.000000
[TRACE] 17:07:29.849 segment.go:Execute() - 42ns
[TRACE] 17:07:29.849 segment.go:Execute() - 96ns
[DEBUG] 17:07:29.849 path.go:147 → display_cygpath: false
[DEBUG] 17:07:29.849 home.go:Home:16 → /home/heaths
[TRACE] 17:07:29.849 path.go:setPaths() - 122ns
[DEBUG] 17:07:29.849 home.go:Home:16 → /home/heaths
[TRACE] 17:07:29.849 terminal.go:DirMatchesOneOf() - 48ns
[TRACE] 17:07:29.849 path.go:setPaths() - 76ns
[DEBUG] 17:07:29.849 segment.go:Execute:110 → segment: Status
[DEBUG] 17:07:29.849 segment.go:Execute:110 → segment: Python
[TRACE] 17:07:29.849 path.go:setPaths() - 126ns
[TRACE] 17:07:29.849 status.go:Enabled() - 126ns
[TRACE] 17:07:29.849 path.go:setPaths() - 40ns
[DEBUG] 17:07:29.849 status.go:formatStatus:45 → {{ .Code }}
[DEBUG] 17:07:29.849 python.go:Enabled:57 → environment
[TRACE] 17:07:29.849 path.go:parsePath() - 39ns
[DEBUG] 17:07:29.849 path.go:setMappedLocations:557 → mapped_locations_enabled: true
[DEBUG] 17:07:29.849 path.go:setMappedLocations:558 → 
[DEBUG] 17:07:29.849 language.go:Enabled:118 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 17:07:29.849 path.go:setMappedLocations:559 → 
[DEBUG] 17:07:29.849 language.go:Enabled:119 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 17:07:29.849 language.go:Enabled:126 → home_enabled: false
[DEBUG] 17:07:29.849 home.go:Home:16 → /home/heaths
[DEBUG] 17:07:29.849 python.go:loadContext:65 → fetch_virtual_env: true
[DEBUG] 17:07:29.849 home.go:Home:16 → /home/heaths
[TRACE] 17:07:29.849 clean.go:Clean() - 134ns
[TRACE] 17:07:29.849 path.go:normalize() - 58ns
[TRACE] 17:07:29.849 path.go:normalize() - 29ns
[DEBUG] 17:07:29.849 path.go:setMappedLocations:560 → ~
[DEBUG] 17:07:29.849 path.go:setMappedLocations:565 → mapped_locations: map[]
[TRACE] 17:07:29.849 clean.go:Clean() - 56ns
[TRACE] 17:07:29.849 path.go:normalize() - 35ns
[TRACE] 17:07:29.849 path.go:normalize() - 39ns
[TRACE] 17:07:29.849 clean.go:Clean() - 38ns
[TRACE] 17:07:29.849 path.go:normalize() - 40ns
[TRACE] 17:07:29.849 path.go:normalize() - 34ns
[TRACE] 17:07:29.849 path.go:parsePath() - 38ns
[TRACE] 17:07:29.849 path.go:parsePath() - 34ns
[TRACE] 17:07:29.849 path.go:parsePath() - 32ns
[DEBUG] 17:07:29.849 path.go:makeFolderFormatMap:833 → NO DATA
[DEBUG] 17:07:29.850 path.go:setStyle:213 → full
[DEBUG] 17:07:29.850 path.go:colorizePath:734 → cycle: []
[DEBUG] 17:07:29.850 path.go:getFolderSeparator:267 → NO DATA
[DEBUG] 17:07:29.850 path.go:getFolderSeparator:269 → /
[TRACE] 17:07:29.850 segment.go:Execute() - 198ns
[TRACE] 17:07:29.850 status.go:formatStatus({{ .Code }}) - 330.887┬╡s
[DEBUG] 17:07:29.850 status.go:Enabled:37 → always_enabled: false
[DEBUG] 17:07:29.850 path.go:colorizePath:737 → cycle_folder_separator: false
[TRACE] 17:07:29.850 segment.go:Execute() - 84ns
[DEBUG] 17:07:29.850 home.go:Home:16 → /home/heaths
[TRACE] 17:07:29.850 terminal.go:DirMatchesOneOf() - 212ns
[DEBUG] 17:07:29.850 home.go:Home:16 → /home/heaths
t: Session
[DEBUG] 17:07:29.850 segment.go:Execute:112 → no toggles found
[TRACE] 17:07:29.850 terminal.go:DirMatchesOneOf() - 135ns
[DEBUG] 17:07:29.850 session.go:activeSSHSession:31 → NO DATA
[DEBUG] 17:07:29.850 segment.go:Execute:110 → segment: Root
[TRACE] 17:07:29.850 session.go:activeSSHSession(SSH_CONNECTION) - 4.963┬╡s
[DEBUG] 17:07:29.850 segment.go:Execute:112 → no toggles found
[DEBUG] 17:07:29.850 session.go:activeSSHSession:31 → NO DATA
[TRACE] 17:07:29.850 session.go:activeSSHSession(SSH_CLIENT) - 2.954┬╡s
[DEBUG] 17:07:29.850 session.go:activeSSHSession:37 → ubuntu
[TRACE] 17:07:29.850 root.go:Enabled() - 502ns
[DEBUG] 17:07:29.850 path.go:colorizePath:738 → %s
[DEBUG] 17:07:29.851 path.go:colorizePath:740 → %s
[DEBUG] 17:07:29.851 path.go:colorizePath:741 → %s
[DEBUG] 17:07:29.851 path.go:colorizePath:742 → %s
[TRACE] 17:07:29.851 segment.go:string( {{ .Name }} ) - 1.168253ms
[TRACE] 17:07:29.851 path.go:Enabled() - 112ns
[TRACE] 17:07:29.851 path.go:Enabled() - 67ns
[TRACE] 17:07:29.851 segment.go:resolve(diamond) - 269ns
[TRACE] 17:07:29.851 path.go:Enabled() - 56ns
[TRACE] 17:07:29.851 path.go:Enabled(/home/heaths/src/autorest.rust/packages/typespec-rust) - 32.582┬╡s
[DEBUG] 17:07:29.852 session.go:activeSSHSession:41 → NO DATA
[TRACE] 17:07:29.852 session.go:activeSSHSession(who am i) - 1.147924ms
[ERROR] 17:07:29.947 python.go:pyvenvCfgPrompt:179 → exec: "python": executable file not found in $PATH
[TRACE] 17:07:29.947 python.go:pyvenvCfgPrompt(python) - 97.890646ms
[DEBUG] 17:07:29.947 python.go:pyvenvCfgPrompt:181 → /usr/bin/python3
[TRACE] 17:07:29.947 python.go:pyvenvCfgPrompt(python3) - 76.788┬╡s
[DEBUG] 17:07:29.949 python.go:pyvenvCfgPrompt:189 → false
[TRACE] 17:07:29.949 python.go:pyvenvCfgPrompt(pyvenv.cfg) - 1.440055ms
[DEBUG] 17:07:29.949 python.go:pyvenvCfgPrompt:193 → false
[TRACE] 17:07:29.949 python.go:pyvenvCfgPrompt(pyvenv.cfg) - 33.301┬╡s
[DEBUG] 17:07:29.949 python.go:loadContext:79 → folder_name_fallback: true
[DEBUG] 17:07:29.949 python.go:loadContext:80 → default_venv_names: [.venv venv]
[DEBUG] 17:07:29.949 python.go:loadContext:87 → NO DATA
[TRACE] 17:07:29.949 python.go:loadContext(VIRTUAL_ENV) - 4.936┬╡s
[DEBUG] 17:07:29.949 python.go:loadContext:87 → NO DATA
[TRACE] 17:07:29.949 python.go:loadContext(CONDA_ENV_PATH) - 3.299┬╡s
[DEBUG] 17:07:29.949 python.go:loadContext:87 → NO DATA
[TRACE] 17:07:29.949 python.go:loadContext(CONDA_DEFAULT_ENV) - 2.658┬╡s
[TRACE] 17:07:29.949 segment.go:resolve(powerline) - 813ns
[TRACE] 17:07:29.949 segment.go:resolve(powerline) - 153ns
[TRACE] 17:07:29.949 segment.go:resolve(powerline) - 121ns
[TRACE] 17:07:29.949 segment.go:string( {{ if .SSHSession }} {{ end }}{{ .UserName }} ) - 78.488µs
[TRACE] 17:07:29.949 segment.go:resolve(powerline) - 206ns
[TRACE] 17:07:29.949 segment.go:resolve(powerline) - 123ns
[TRACE] 17:07:29.949 segment.go:string( {{ path .Path .Location }} {{ repeat .StackCount "" }}) - 58.826µs
[TRACE] 17:07:29.949 segment.go:resolve(powerline) - 210ns
[TRACE] 17:07:29.949 engine.go:applyPowerShellBleedPatch() - 307ns
[TRACE] 17:07:29.949 engine.go:applyPowerShellBleedPatch() - 37ns
[TRACE] 17:07:29.949 segment.go:Execute() - 84ns
[DEBUG] 17:07:29.949 home.go:Home:16 → /home/heaths
[TRACE] 17:07:29.949 terminal.go:DirMatchesOneOf() - 54ns
[DEBUG] 17:07:29.949 segment.go:Execute:110 → segment: Git
[DEBUG] 17:07:29.949 segment.go:Execute:112 → no toggles found
[DEBUG] 17:07:29.949 terminal.go:HasParentFilePath:446 → /home/heaths/src/autorest.rust/packages/typespec-rust
[TRACE] 17:07:29.949 terminal.go:HasParentFilePath(/home/heaths/src/autorest.rust/packages/typespec-rust) - 21.664┬╡s
[TRACE] 17:07:29.949 git.go:CacheKey(.git) - 36.069┬╡s
[DEBUG] 17:07:29.949 scm.go:FileContents:142 Γåô
    ref: refs/heads/main
    
[TRACE] 17:07:29.949 scm.go:FileContents(/home/heaths/src/autorest.rust/.git/HEAD) - 22.519┬╡s
[DEBUG] 17:07:29.949 segment.go:Execute:116 → restored segment from cache:  Git
[TRACE] 17:07:29.950 segment.go:string( {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }}{{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }} ) - 356.532µs
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}) - 36.123┬╡s
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}) - 45.304┬╡s
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if gt .Ahead 0 }}p:yellow{{ end }}) - 22.783┬╡s
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if gt .Behind 0 }}p:orange{{ end }}) - 23.512┬╡s
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}) - 35.278┬╡s
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}) - 19.016┬╡s
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if gt .Ahead 0 }}p:black{{ end }}) - 12.773┬╡s
[TRACE] 17:07:29.950 segment.go:resolve(diamond) - 147ns
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}) - 19.697┬╡s
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}) - 16.943┬╡s
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if gt .Ahead 0 }}p:yellow{{ end }}) - 16.943┬╡s
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if gt .Behind 0 }}p:orange{{ end }}) - 12.408┬╡s
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}) - 27.58┬╡s
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}) - 18.568┬╡s
[TRACE] 17:07:29.950 list.go:FirstMatch({{ if gt .Ahead 0 }}p:black{{ end }}) - 11.932┬╡s
[TRACE] 17:07:29.950 engine.go:applyPowerShellBleedPatch() - 102ns
[TRACE] 17:07:29.950 engine.go:applyPowerShellBleedPatch() - 30ns
[TRACE] 17:07:29.950 primary.go:writePrimaryPrompt() - 43ns
[TRACE] 17:07:29.950 primary.go:Primary() - 26ns
[DEBUG] 17:07:29.950 home.go:Home:16 → /home/heaths
[TRACE] 17:07:29.950 debug.go:PrintDebug() - 15.656┬╡s
[TRACE] 17:07:29.950 debug.go:PrintDebug() - 33ns
@heaths heaths added the 🐛 bug Something isn't working label Jan 10, 2025
@heaths
Copy link
Contributor Author

heaths commented Jan 10, 2025

I'm working on a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment