JanDeDobbeleer / oh-my-posh

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

Transient prompt stopped working. #5336

Closed SuXYIO closed 2 months ago

SuXYIO commented 2 months ago

Code of Conduct

What happened?

The transient prompt stopped working after the autoupdate probably on yesterday. Forgot what version i was using before though. screenshot0

Theme

:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json

version = 2 final_space = true console_title_template = '{{ .Shell }} in {{ .Folder }}'

[[blocks]] type = 'prompt' alignment = 'left'

[[blocks.segments]]
    type = 'os'
    style = 'diamond'
    foreground = 'p:black'
    background = 'p:white'
    leading_diamond = ''
    trailing_diamond = ''
    template = ' {{ if .WSL }}WSL at {{ end }}{{.Icon}} '

[[blocks.segments]]
    type = 'path'
    style = 'powerline'
    powerline_symbol = ''
    foreground = 'p:white'
    background = '#010101'
    template = '  {{ .Path }} '

    [blocks.segments.properties]
        style = 'folder'

[[blocks.segments]]
    type = 'git'
    style = 'powerline'
    powerline_symbol = ''
    foreground = 'p:black'
    background = 'p:deepgreen'
    background_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:deepgreen{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:deepred{{ end }}', '{{ if gt .Ahead 0 }}p:deepgreen{{ end }}', '{{ if gt .Behind 0 }}p:deepred{{ end }}']
    template = ' {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }} '

    [blocks.segments.properties]
        branch_icon = ' '
        fetch_stash_count = true
        fetch_status = true
        fetch_upstream_icon = true
        fetch_worktree_count = true

[[blocks.segments]]
    type = 'root'
    style = 'powerline'
    powerline_symbol = ''
    foreground = 'p:white'
    background = 'p:yellow'
    template = '  '

[[blocks.segments]]
    type = 'status'
    style = 'diamond'
    foreground = 'p:white'
    background = 'p:deepblue'
    background_templates = ['{{ if gt .Code 0 }}p:deepred{{ end }}']
    leading_diamond = '<transparent,background></>'
    trailing_diamond = '<background,transparent></>'
    template = ' {{ .String }} '

    [blocks.segments.properties]
        always_enabled = true

[[blocks]] type = 'rprompt' alignment = 'right'

[[blocks.segments]]
    type = 'shell'
    style = 'diamond'
    foreground = 'p:black'
    background = 'p:grey'
    leading_diamond = '<p:grey,transparent></>'
    trailing_diamond = '<transparent,p:grey></>'
    template = ' 󰞷 {{ .Name }} '

[[blocks.segments]]
    type = 'executiontime'
    style = 'diamond'
    foreground = 'p:white'
    background = 'p:black'
    leading_diamond = '<p:black,transparent></>'
    trailing_diamond = '<transparent,p:black></>'
    template = ' 󱎫 {{ .FormattedMs }} '

    [blocks.segments.properties]
        style = 'roundrock'
        threshold = 0.0

[[blocks.segments]]
    type = 'battery'
    style = 'diamond'
    foreground = 'p:white'
    background = 'p:deepgreen'
    leading_diamond = '<p:deepgreen,transparent></>'
    trailing_diamond = '<transparent,p:deepgreen></>'
    template = ' {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}% '

    [blocks.segments.properties]
        discharging_icon = '󰁿 '
        charging_icon = '󰂉 '
        charged_icon = '󰂅 '

[[blocks.segments]]
    type = 'sysinfo'
    style = 'diamond'
    foreground = 'p:white'
    background = 'p:darkpink'
    leading_diamond = '<p:darkpink,transparent></>'
    trailing_diamond = '<transparent,p:darkpink></>'
    template = '  {{ round .PhysicalPercentUsed .Precision }} '

[[blocks.segments]]
    type = 'time'
    style = 'diamond'
    foreground = 'p:black'
    background = 'p:white'
    leading_diamond = ''
    trailing_diamond = ''
    template = ' 󰥔 {{ .CurrentDate | date .Format }} '

[transient_prompt] foreground = 'p:grey' background = 'transparent' template = ' '

[secondary_prompt] foreground = 'p:grey' background = 'transparent' template = ' '

[palette] black = '#000000' blue = '#0000ff' cyan = '#00ffff' darkcyan = '#008888' darkpink = '#880088' darkyellow = '#888800' deepblue = '#000088' deepgreen = '#008800' deepred = '#880000' green = '#00ff00' grey = '#888888' pink = '#ff00ff' red = '#ff0000' white = '#ffffff' yellow = '#ffff00'

What OS are you seeing the problem on?

macOS

Which shell are you using?

zsh

Log output

Version: 22.0.3

Shell: zsh (5.8.1)

Prompt:

    ohmyposh   main ≡  ~1  0  

Segments:

ConsoleTitle(true)                         -   0 ms
Os(true)                                   -   0 ms
Path(true)                                 -   1 ms
Git(true)                                  -  12 ms
Status(true)                               -   5 ms
Shell(true)                                -   0 ms
Executiontime(true)                        -   0 ms
Battery(true)                              -  17 ms
Sysinfo(true)                              -   3 ms
Time(true)                                 -   0 ms

Run duration: 40.125312ms

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

Config path: /Users/suxy/.config/ohmyposh/config.toml

Logs:

[DEBUG] 14:23:50.877 os.go:Getenv:309 → NO DATA
[TRACE] 14:23:50.877 os.go:Getenv(OMP_CACHE_DIR) - 240.117µs
[DEBUG] 14:23:50.877 os.go:Getenv:309 → NO DATA
[TRACE] 14:23:50.877 os.go:Getenv(XDG_CACHE_HOME) - 5.715µs
[TRACE] 14:23:50.878 os_unix.go:CachePath() - 455.66µs
[DEBUG] 14:23:50.880 os.go:Getenv:309 → /Users/suxy/.config/ohmyposh/config.toml
[TRACE] 14:23:50.880 os.go:Getenv(POSH_THEME) - 16.771µs
[DEBUG] 14:23:50.880 os_unix.go:Platform:87 → darwin
[TRACE] 14:23:50.880 os.go:resolveConfigPath() - 30.651µs
[TRACE] 14:23:50.880 os.go:Init() - 3.027802ms
[TRACE] 14:23:50.880 os.go:Flags() - 65ns
[TRACE] 14:23:50.881 load.go:loadConfig() - 321.468µs
[TRACE] 14:23:50.881 os.go:Flags() - 72ns
[DEBUG] 14:23:50.881 debug.go:44 → Terminal shell: %s shell
[DEBUG] 14:23:50.881 debug.go:44 → Terminal program: %s Unknown
[DEBUG] 14:23:50.881 os.go:Getenv:309 → NO DATA
[TRACE] 14:23:50.881 os.go:Getenv(OMP_CACHE_DISABLED) - 7.903µs
[DEBUG] 14:23:50.881 os.go:Shell:584 → no shell name provided in flags, trying to detect it
[DEBUG] 14:23:50.881 os.go:Shell:592 → process name: zsh
[TRACE] 14:23:50.881 os.go:Shell() - 99.08µs
[DEBUG] 14:23:50.881 os.go:Getenv:309 → 5.8.1
[TRACE] 14:23:50.881 os.go:Getenv(POSH_SHELL_VERSION) - 3.433µs
[DEBUG] 14:23:50.881 debug.go:PrintDebug:23 → Segment: Title
[DEBUG] 14:23:50.881 text.go:Render:73 → Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 14:23:50.881 os_unix.go:Root() - 1.024µs
[TRACE] 14:23:50.881 os.go:Shell() - 138ns
[TRACE] 14:23:50.881 os.go:StatusCodes() - 93ns
[DEBUG] 14:23:50.881 os_unix.go:IsWsl:35 → false
[TRACE] 14:23:50.881 os_unix.go:IsWsl() - 8.729µs
[DEBUG] 14:23:50.881 os.go:TemplateCache:792 → environment: [__CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34 XPC_SERVICE_NAME=0 SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.dKDAkRfEYa/Listeners XPC_FLAGS=0x0 PATH=/usr/local/Cellar/git/*/bin:/usr/local/Cellar/git/*/bin:/usr/local/Cellar/git/*/bin:/usr/local/Cellar/git/*/bin:/usr/local/Caskroom/miniconda/base/bin:/usr/local/Caskroom/miniconda/base/condabin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS:/Users/suxy/.cargo/bin:/Applications/kitty.app/Contents/MacOS:/usr/local/bin:/Users/suxy/.orbstack/bin COMMAND_MODE=unix2003 LANG=en_US.UTF-8 COLORTERM=truecolor USER=suxy HOME=/Users/suxy KITTY_PUBLIC_KEY=1:e828LzdRyQ#@_-k)w;&FrY!x8IOy%qoL|)UKjI2( KITTY_WINDOW_ID=1 KITTY_PID=2318 LOGNAME=suxy TERM=xterm-kitty TERMINFO=/Applications/kitty.app/Contents/Resources/kitty/terminfo KITTY_INSTALLATION_DIR=/Applications/kitty.app/Contents/Resources/kitty __CFBundleIdentifier=net.kovidgoyal.kitty TMPDIR=/var/folders/9q/gg3q1lbj5vgfdxwpv81zq2kc0000gn/T/ WINDOWID=321 MANPATH=/usr/local/man:/usr/local/man:/usr/local/man:/usr/local/man:/usr/local/share/man:/usr/share/man:/usr/local/share/man:/Applications/Wireshark.app/Contents/Resources/share/man:/Applications/kitty.app/Contents/Resources/man: SHELL=/bin/zsh PWD=/Users/suxy/.config/ohmyposh SHLVL=1 OLDPWD=/Users/suxy/Workspace HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles HOMEBREW_PREFIX=/usr/local HOMEBREW_CELLAR=/usr/local/Cellar HOMEBREW_REPOSITORY=/usr/local/Homebrew INFOPATH=/usr/local/share/info: HOMEBREW_API_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/api ZSH=/Users/suxy/.oh-my-zsh PAGER=less LESS=-R LSCOLORS=Gxfxcxdxbxegedabagacad LS_COLORS=di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43 POSH_THEME=/Users/suxy/.config/ohmyposh/config.toml POSH_SHELL_VERSION=5.8.1 POSH_PID=2322 POWERLINE_COMMAND=oh-my-posh CONDA_PROMPT_MODIFIER=(base)  POSH_PROMPT_COUNT=39 ZLE_RPROMPT_INDENT=0 EDITOR=nvim CONDA_EXE=/usr/local/Caskroom/miniconda/base/bin/conda _CE_M= _CE_CONDA= CONDA_PYTHON_EXE=/usr/local/Caskroom/miniconda/base/bin/python CONDA_SHLVL=1 CONDA_PREFIX=/usr/local/Caskroom/miniconda/base CONDA_DEFAULT_ENV=base GO111MODULE=on GOPROXY=https://goproxy.io GIT=/usr/local/Cellar/git/* RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup AI_PROVIDER=blackboxai RANGER_LOAD_DEFAULT_RC=false _=/usr/local/bin/oh-my-posh]
[TRACE] 14:23:50.881 os.go:GOOS() - 104ns
[DEBUG] 14:23:50.881 os.go:Pwd:339 → /Users/suxy/.config/ohmyposh
[TRACE] 14:23:50.881 os.go:Pwd() - 28.974µs
[DEBUG] 14:23:50.881 os_unix.go:IsWsl:35 → false
[TRACE] 14:23:50.881 os_unix.go:IsWsl() - 12.247µs
[TRACE] 14:23:50.881 os.go:GOOS() - 58ns
[TRACE] 14:23:50.881 os.go:GOOS() - 63ns
[TRACE] 14:23:50.881 os.go:GOOS() - 45ns
[TRACE] 14:23:50.881 os.go:GOOS() - 45ns
[TRACE] 14:23:50.881 os.go:GOOS() - 45ns
[TRACE] 14:23:50.881 os.go:GOOS() - 46ns
[TRACE] 14:23:50.881 os.go:GOOS() - 45ns
[TRACE] 14:23:50.881 os.go:GOOS() - 47ns
[TRACE] 14:23:50.881 os.go:GOOS() - 72ns
[TRACE] 14:23:50.881 os.go:GOOS() - 46ns
[DEBUG] 14:23:50.881 os.go:User:477 → suxy
[TRACE] 14:23:50.881 os.go:User() - 5.418µs
[DEBUG] 14:23:50.881 os.go:Host:494 → SuXY
[TRACE] 14:23:50.881 os.go:Host() - 12.149µs
[TRACE] 14:23:50.881 os.go:GOOS() - 72ns
[DEBUG] 14:23:50.881 os.go:Getenv:309 → 1
[TRACE] 14:23:50.881 os.go:Getenv(SHLVL) - 3.121µs
[TRACE] 14:23:50.881 os.go:TemplateCache() - 207.684µs
[TRACE] 14:23:50.881 os.go:Shell() - 119ns
[DEBUG] 14:23:50.881 os.go:Getenv:309 → NO DATA
[TRACE] 14:23:50.881 os.go:Getenv(POSH_CURSOR_LINE) - 3.205µs
[DEBUG] 14:23:50.881 os.go:Getenv:309 → NO DATA
[TRACE] 14:23:50.881 os.go:Getenv(POSH_CURSOR_COLUMN) - 2.595µs
[TRACE] 14:23:50.881 os.go:Flags() - 71ns
[TRACE] 14:23:50.881 os.go:Flags() - 44ns
[TRACE] 14:23:50.881 os.go:Flags() - 69ns
[TRACE] 14:23:50.881 os.go:Flags() - 271ns
[TRACE] 14:23:50.881 os.go:Flags() - 201ns
[DEBUG] 14:23:50.881 status.go:Init:53 → {{ .Code }}
[TRACE] 14:23:50.881 os.go:Pwd() - 273ns
[TRACE] 14:23:50.881 os.go:Pwd() - 271ns
[TRACE] 14:23:50.881 os.go:GOOS() - 82ns
[TRACE] 14:23:50.881 os.go:GOOS() - 106ns
[TRACE] 14:23:50.881 os.go:Pwd() - 173ns
[DEBUG] 14:23:50.881 segment.go:SetEnabled:115 → Segment: Status
[TRACE] 14:23:50.881 os.go:GOOS() - 86ns
[DEBUG] 14:23:50.881 segment.go:SetEnabled:115 → Segment: Os
[DEBUG] 14:23:50.881 segment.go:SetEnabled:115 → Segment: Path
[TRACE] 14:23:50.881 os.go:GOOS() - 85ns
[DEBUG] 14:23:50.882 path.go:replaceMappedLocations:520 → ~
[DEBUG] 14:23:50.882 path.go:replaceMappedLocations:525 → mapped_locations: map[]
[DEBUG] 14:23:50.882 text.go:Render:73 → Rendering template: {{ .Code }}
[DEBUG] 14:23:50.882 os.go:Enabled:36 → 
[TRACE] 14:23:50.882 os.go:TemplateCache() - 482ns
[TRACE] 14:23:50.882 os.go:GOOS() - 69ns
[DEBUG] 14:23:50.882 segment.go:SetEnabled:115 → Segment: Root
[TRACE] 14:23:50.882 os_unix.go:Root() - 1.372µs
[TRACE] 14:23:50.882 os_unix.go:IsWsl() - 8.962µs
[TRACE] 14:23:50.882 os_unix.go:IsWsl2() - 282.478µs
[TRACE] 14:23:50.882 os.go:GOOS() - 110ns
[TRACE] 14:23:50.882 os.go:GOOS() - 200ns
[TRACE] 14:23:50.882 os.go:GOOS() - 101ns
[DEBUG] 14:23:50.882 path.go:makeFolderFormatMap:841 → NO DATA
[DEBUG] 14:23:50.882 os.go:CommandPath:536 → /usr/local/bin/git
[TRACE] 14:23:50.882 os.go:CommandPath(git) - 116.354µs
[TRACE] 14:23:50.882 os.go:HasCommand(git) - 124.729µs
[DEBUG] 14:23:50.882 path.go:setStyle:192 → folder
[TRACE] 14:23:50.882 os.go:Pwd() - 240ns
[TRACE] 14:23:50.882 os.go:GOOS() - 106ns
[TRACE] 14:23:50.882 os.go:GOOS() - 78ns
[TRACE] 14:23:50.882 os.go:GOOS() - 47ns
[TRACE] 14:23:50.882 os.go:GOOS() - 47ns
[TRACE] 14:23:50.882 os.go:GOOS() - 46ns
[TRACE] 14:23:50.882 os.go:GOOS() - 78ns
[TRACE] 14:23:50.882 os.go:GOOS() - 46ns
[TRACE] 14:23:50.882 os.go:GOOS() - 45ns
[TRACE] 14:23:50.882 os.go:GOOS() - 57ns
[DEBUG] 14:23:50.882 path.go:getFolderSeparator:250 → NO DATA
[DEBUG] 14:23:50.883 path.go:getFolderSeparator:252 → /
[TRACE] 14:23:50.883 os.go:Pwd() - 159ns
[TRACE] 14:23:50.883 os.go:TemplateCache() - 171ns
[TRACE] 14:23:50.883 os.go:StackCount() - 82ns
[DEBUG] 14:23:50.883 os.go:ResolveSymlink:436 → /Users/suxy/.config/ohmyposh
[TRACE] 14:23:50.883 os.go:ResolveSymlink(/Users/suxy/.config/ohmyposh) - 75.405µs
[TRACE] 14:23:50.883 os.go:HasParentFilePath(.git) - 115.562µs
[TRACE] 14:23:50.883 os_unix.go:DirIsWritable(/Users/suxy/.config/ohmyposh) - 27.319µs
[DEBUG] 14:23:50.883 scm.go:shouldIgnoreRootRepository:130 → exclude_folders: []
[TRACE] 14:23:50.883 os.go:GOOS() - 89ns
[TRACE] 14:23:50.883 os.go:GOOS() - 85ns
[DEBUG] 14:23:50.883 git.go:Enabled:167 → fetch_user: false
[TRACE] 14:23:50.883 os.go:GOOS() - 63ns
[TRACE] 14:23:50.883 os.go:GOOS() - 48ns
[TRACE] 14:23:50.883 os.go:GOOS() - 65ns
[TRACE] 14:23:50.883 os.go:GOOS() - 47ns
[TRACE] 14:23:50.883 os.go:GOOS() - 58ns
[TRACE] 14:23:50.883 os.go:GOOS() - 57ns
[TRACE] 14:23:50.883 os.go:GOOS() - 76ns
[TRACE] 14:23:50.883 os.go:GOOS() - 48ns
[TRACE] 14:23:50.883 os.go:GOOS() - 48ns
[DEBUG] 14:23:50.883 os.go:Getenv:309 → NO DATA
[TRACE] 14:23:50.883 os.go:Getenv(POSH_GIT_STATUS) - 4.665µs
[DEBUG] 14:23:50.883 git.go:Enabled:186 → fetch_status: true
[DEBUG] 14:23:50.883 git.go:shouldIgnoreStatus:413 → ignore_status: []
[TRACE] 14:23:50.883 os.go:TemplateCache() - 195ns
[TRACE] 14:23:50.883 os.go:GOOS() - 141ns
[DEBUG] 14:23:50.883 git.go:setGitStatus:549 → status_formats: map[]
[DEBUG] 14:23:50.883 git.go:getSwitchMode:850 → untracked_modes: map[]
[DEBUG] 14:23:50.883 git.go:getSwitchMode:850 → ignore_submodules: map[]
[TRACE] 14:23:50.887 os.go:TemplateCache() - 3.248µs
[DEBUG] 14:23:50.887 status.go:Enabled:42 → always_enabled: true
[TRACE] 14:23:50.887 os.go:TemplateCache() - 571ns
[DEBUG] 14:23:50.894 os.go:RunCommand:514 ↓
    # branch.oid d2268481c4108b9da63af6824505679292533871
    # branch.head main
    # branch.upstream github/main
    # branch.ab +0 -0
    1 .M N... 100644 100644 100644 91ebb57f19198ae7e70c93cabd8707ad66e68e91 91ebb57f19198ae7e70c93cabd8707ad66e68e91 config.toml
[TRACE] 14:23:50.894 os.go:RunCommand(git -C /Users/suxy/.config/ohmyposh --no-optional-locks -c core.quotepath=false -c color.status=false status -unormal --branch --porcelain=2) - 10.629525ms
[DEBUG] 14:23:50.894 git.go:setGitHEADContext:601 →  
[DEBUG] 14:23:50.894 git.go:formatHEAD:724 → branch_max_length: 0
[DEBUG] 14:23:50.894 os.go:HasFolder:421 → false
[TRACE] 14:23:50.894 os.go:HasFolder(/Users/suxy/.config/ohmyposh/.git/rebase-merge) - 14.608µs
[DEBUG] 14:23:50.894 os.go:HasFolder:421 → false
[TRACE] 14:23:50.894 os.go:HasFolder(/Users/suxy/.config/ohmyposh/.git/rebase-apply) - 7.047µs
[DEBUG] 14:23:50.894 git.go:setGitHEADContext:652 → 
[DEBUG] 14:23:50.894 os.go:HasFilesInDir:392 → false
[TRACE] 14:23:50.894 os.go:HasFilesInDir(MERGE_MSG) - 210.175µs
[DEBUG] 14:23:50.894 os.go:HasFilesInDir:392 → false
[TRACE] 14:23:50.894 os.go:HasFilesInDir(CHERRY_PICK_HEAD) - 5.586µs
[DEBUG] 14:23:50.894 os.go:HasFilesInDir:392 → false
[TRACE] 14:23:50.894 os.go:HasFilesInDir(REVERT_HEAD) - 4.929µs
[DEBUG] 14:23:50.894 os.go:HasFilesInDir:392 → false
[TRACE] 14:23:50.894 os.go:HasFilesInDir(sequencer/todo) - 4.6µs
[DEBUG] 14:23:50.894 git.go:432 → ≡
[DEBUG] 14:23:50.894 git.go:Enabled:197 → fetch_upstream_icon: true
[DEBUG] 14:23:50.894 git.go:getUpstreamIcon:488 → upstream_icons: map[]
[DEBUG] 14:23:50.894 git.go:getUpstreamIcon:509 →  
[TRACE] 14:23:50.894 os.go:TemplateCache() - 467ns
[DEBUG] 14:23:50.894 text.go:Render:73 → Rendering template:  {{ .String }} 
[DEBUG] 14:23:50.894 text.go:Render:73 → Rendering template:   {{ .Path }} 
[DEBUG] 14:23:50.894 text.go:Render:73 → Rendering template:  {{ if .WSL }}WSL at {{ end }}{{.Icon}} 
[DEBUG] 14:23:50.894 text.go:Render:73 → Rendering template:  {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }} 
[TRACE] 14:23:50.895 os.go:TemplateCache() - 238ns
[TRACE] 14:23:50.895 os.go:TemplateCache() - 400ns
[TRACE] 14:23:50.895 os.go:TemplateCache() - 199ns
[TRACE] 14:23:50.896 os.go:TemplateCache() - 449ns
[DEBUG] 14:23:50.896 text.go:Render:73 → Rendering template: powerline
[DEBUG] 14:23:50.896 text.go:Render:73 → Rendering template: diamond
[DEBUG] 14:23:50.896 text.go:Render:73 → Rendering template: powerline
[DEBUG] 14:23:50.896 text.go:Render:73 → Rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}p:deepgreen{{ end }}
[TRACE] 14:23:50.897 os.go:TemplateCache() - 485ns
[DEBUG] 14:23:50.897 text.go:Render:73 → Rendering template: powerline
[DEBUG] 14:23:50.897 text.go:Render:73 → Rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}p:deepgreen{{ end }}
[TRACE] 14:23:50.897 os.go:TemplateCache() - 199ns
[DEBUG] 14:23:50.897 text.go:Render:73 → Rendering template: {{ if gt .Code 0 }}p:deepred{{ end }}
[TRACE] 14:23:50.897 os.go:TemplateCache() - 155ns
[DEBUG] 14:23:50.897 text.go:Render:73 → Rendering template: diamond
[DEBUG] 14:23:50.897 text.go:Render:73 → Rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}p:deepgreen{{ end }}
[TRACE] 14:23:50.897 os.go:TemplateCache() - 202ns
[DEBUG] 14:23:50.897 text.go:Render:73 → Rendering template: {{ if gt .Code 0 }}p:deepred{{ end }}
[TRACE] 14:23:50.897 os.go:TemplateCache() - 221ns
[TRACE] 14:23:50.897 os.go:Shell() - 222ns
[TRACE] 14:23:50.897 os.go:Shell() - 48ns
[TRACE] 14:23:50.898 os.go:Flags() - 110ns
[TRACE] 14:23:50.898 os.go:Pwd() - 258ns
[TRACE] 14:23:50.898 os.go:GOOS() - 94ns
[DEBUG] 14:23:50.898 segment.go:SetEnabled:115 → Segment: Time
[TRACE] 14:23:50.898 os.go:Flags() - 299ns
[DEBUG] 14:23:50.898 time.go:Enabled:29 → 15:04:05
[TRACE] 14:23:50.898 os.go:TemplateCache() - 332ns
[TRACE] 14:23:50.898 os.go:Pwd() - 281ns
[TRACE] 14:23:50.898 os.go:Flags() - 190ns
[TRACE] 14:23:50.898 os.go:Flags() - 193ns
[TRACE] 14:23:50.898 os.go:GOOS() - 115ns
[TRACE] 14:23:50.898 os.go:Flags() - 228ns
[DEBUG] 14:23:50.898 segment.go:SetEnabled:115 → Segment: Executiontime
[DEBUG] 14:23:50.898 sysinfo.go:Init:36 → precision: 2
[TRACE] 14:23:50.898 os.go:Pwd() - 250ns
[TRACE] 14:23:50.898 os.go:GOOS() - 101ns
[TRACE] 14:23:50.898 os.go:Pwd() - 200ns
[DEBUG] 14:23:50.898 segment.go:SetEnabled:115 → Segment: Shell
[DEBUG] 14:23:50.898 executiontime.go:Enabled:57 → always_enabled: false
[TRACE] 14:23:50.898 os.go:GOOS() - 95ns
[TRACE] 14:23:50.898 os.go:ExecutionTime() - 126ns
[DEBUG] 14:23:50.898 shell.go:Enabled:28 → mapped_shell_names: map[]
[DEBUG] 14:23:50.898 segment.go:SetEnabled:115 → Segment: Battery
[DEBUG] 14:23:50.898 executiontime.go:Enabled:59 → threshold: 0.000000
[DEBUG] 14:23:50.898 executiontime.go:Enabled:63 → roundrock
[DEBUG] 14:23:50.898 os_unix.go:IsWsl:35 → false
[TRACE] 14:23:50.898 os.go:TemplateCache() - 358ns
[TRACE] 14:23:50.898 os_unix.go:IsWsl() - 14.841µs
[TRACE] 14:23:50.898 os.go:Shell() - 249ns
[TRACE] 14:23:50.898 os.go:Flags() - 123ns
[TRACE] 14:23:50.898 os.go:TemplateCache() - 277ns
[TRACE] 14:23:50.901 os.go:Pwd() - 632ns
[TRACE] 14:23:50.901 os.go:GOOS() - 90ns
[DEBUG] 14:23:50.901 segment.go:SetEnabled:115 → Segment: Sysinfo
[TRACE] 14:23:50.901 os.go:TemplateCache() - 2.019µs
[DEBUG] 14:23:50.914 os.go:RunCommand:514 ↓
    Now drawing from 'Battery Power'
     -InternalBattery-0 (id=8257635)    60%; discharging; 4:20 remaining present: true
[TRACE] 14:23:50.915 os.go:RunCommand(pmset -g batt) - 16.846041ms
[TRACE] 14:23:50.915 os_darwin.go:BatteryState() - 16.999475ms
[DEBUG] 14:23:50.915 battery.go:Enabled:53 → 󰁿 
[TRACE] 14:23:50.915 os.go:TemplateCache() - 572ns
[DEBUG] 14:23:50.915 text.go:Render:73 → Rendering template:  󱎫 {{ .FormattedMs }} 
[DEBUG] 14:23:50.915 text.go:Render:73 → Rendering template:  󰞷 {{ .Name }} 
[DEBUG] 14:23:50.915 text.go:Render:73 → Rendering template:  󰥔 {{ .CurrentDate | date .Format }} 
[DEBUG] 14:23:50.915 text.go:Render:73 → Rendering template:  {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}% 
[DEBUG] 14:23:50.915 text.go:Render:73 → Rendering template:   {{ round .PhysicalPercentUsed .Precision }} 
[TRACE] 14:23:50.916 os.go:TemplateCache() - 856ns
[TRACE] 14:23:50.917 os.go:TemplateCache() - 605ns
[TRACE] 14:23:50.917 os.go:TemplateCache() - 284ns
[TRACE] 14:23:50.917 os.go:TemplateCache() - 128ns
[TRACE] 14:23:50.917 os.go:TemplateCache() - 394ns
[DEBUG] 14:23:50.917 text.go:Render:73 → Rendering template: diamond
[DEBUG] 14:23:50.917 text.go:Render:73 → Rendering template: diamond
[DEBUG] 14:23:50.917 text.go:Render:73 → Rendering template: diamond
[DEBUG] 14:23:50.917 text.go:Render:73 → Rendering template: diamond
[DEBUG] 14:23:50.917 text.go:Render:73 → Rendering template: diamond
[TRACE] 14:23:50.917 os.go:Shell() - 287ns
[TRACE] 14:23:50.917 os.go:Shell() - 48ns
[TRACE] 14:23:50.917 os.go:Flags() - 63ns
[TRACE] 14:23:50.917 os.go:Shell() - 79ns
[TRACE] 14:23:50.917 os.go:Shell() - 56ns
[TRACE] 14:23:50.917 os.go:Flags() - 50ns
[DEBUG] 14:23:50.917 os.go:Getenv:309 → NO DATA
[TRACE] 14:23:50.917 os.go:Getenv(OMP_CACHE_DIR) - 5.581µs
[DEBUG] 14:23:50.917 os.go:Getenv:309 → NO DATA
[TRACE] 14:23:50.917 os.go:Getenv(XDG_CACHE_HOME) - 5.075µs
[TRACE] 14:23:50.917 os_unix.go:CachePath() - 48.688µs
[TRACE] 14:23:50.917 os.go:Flags() - 75ns
JanDeDobbeleer commented 2 months ago

@SuXYIO Initialize oh-my-posh after everything else, so as the last line in your zshrc. That way we can wrap everything correctly.

SuXYIO commented 2 months ago

@JanDeDobbeleer thx