JanDeDobbeleer / oh-my-posh

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

Performance issues with macOS and Oh My Zsh #5650

Closed RockyMM closed 1 month ago

RockyMM commented 1 month ago

Code of Conduct

What happened?

So several things are wrong with my installation.

I installed oh-my-posh from homebrew. I also have oh-my-zsh enabled with several plugins. I use it from iTerm2.

The most important thing is that after issuing: eval "$(oh-my-posh init zsh)", either from .zshrc or from the terminal, I see major performance problems. It only takes to press Enter 10 or so times when the terminal gets laggy. Each command makes it even more laggy.

Interestingly, when I issue oh-my-posh debug zsh the issue goes back to initial state, as if I just evaluated oh-my-posh init zsh.

Also, when I issue eval "$(oh-my-posh init zsh --debug)" I get

zsh: bad pattern: ^[[1m^[[38

Theme

I used defaults

What OS are you seeing the problem on?

macOS

Which shell are you using?

zsh

Log output

Version: 23.14.1

Shell: zsh (5.9)

Prompt:

 rademartinovic   ~   

Segments:

ConsoleTitle(true)                        -   0 ms
Session(true)                             -   6 ms
Path(true)                                -   1 ms
Status(true)                              -   1 ms
Shell(true)                               -   0 ms
Time(true)                                -   0 ms

Run duration: 13.137ms

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

Config path: no --config set, using default built-in configuration

Logs:

[DEBUG] 21:31:11.023 debug.go:49 → debug mode enabled
[DEBUG] 21:31:11.023 debug.go:49 → plain mode enabled
[DEBUG] 21:31:11.024 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.024 terminal.go:Getenv(LOCALAPPDATA) - 431.458µs
[DEBUG] 21:31:11.024 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.024 terminal.go:Getenv(OMP_CACHE_DIR) - 1.75µs
[DEBUG] 21:31:11.024 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.024 terminal.go:Getenv(XDG_CACHE_HOME) - 1.333µs
[TRACE] 21:31:11.024 terminal.go:CachePath() - 625.958µs
[DEBUG] 21:31:11.024 terminal.go:70 → loading cache file: /Users/rademartinovic/.cache/oh-my-posh/omp.cache
[DEBUG] 21:31:11.024 terminal.go:70 → loading cache key: environment_platform
[DEBUG] 21:31:11.024 terminal.go:70 → loading cache key: font_list_cache
[DEBUG] 21:31:11.024 terminal.go:70 → loading cache key: is_wsl
[DEBUG] 21:31:11.024 terminal.go:70 → loading cache key: upgrade_check
[TRACE] 21:31:11.024 terminal.go(/Users/rademartinovic/.cache/oh-my-posh/omp.cache) - 313.042µs
[DEBUG] 21:31:11.024 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.024 terminal.go:Getenv(LOCALAPPDATA) - 1.417µs
[DEBUG] 21:31:11.024 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.024 terminal.go:Getenv(OMP_CACHE_DIR) - 1.208µs
[DEBUG] 21:31:11.024 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.024 terminal.go:Getenv(XDG_CACHE_HOME) - 1.209µs
[TRACE] 21:31:11.024 terminal.go:CachePath() - 14.959µs
[DEBUG] 21:31:11.024 terminal.go:70 → loading cache file: /Users/rademartinovic/.cache/oh-my-posh/omp.cache.93476
[DEBUG] 21:31:11.024 terminal.go:70 → loading cache key: template_cache
[DEBUG] 21:31:11.024 terminal.go:70 → loading cache key: prompt_count_cache
[TRACE] 21:31:11.024 terminal.go(/Users/rademartinovic/.cache/oh-my-posh/omp.cache.93476) - 43.167µs
[TRACE] 21:31:11.024 terminal.go:setPromptCount() - 500ns
[DEBUG] 21:31:11.024 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.024 terminal.go:Getenv(POSH_THEME) - 1.208µs
[DEBUG] 21:31:11.025 terminal.go:ResolveConfigPath:102 → no config set, fallback to default config
[TRACE] 21:31:11.025 terminal.go:ResolveConfigPath() - 169.792µs
[TRACE] 21:31:11.025 terminal.go:Init() - 2.337917ms
[TRACE] 21:31:11.025 terminal.go:Flags() - 41ns
[DEBUG] 21:31:11.025 load.go:loadConfig:55 → no config file specified, using default
[TRACE] 21:31:11.025 load.go:loadConfig() - 349.083µs
[TRACE] 21:31:11.025 terminal.go:Flags() - 41ns
[DEBUG] 21:31:11.025 debug.go:57 → terminal program: iTerm.app
[DEBUG] 21:31:11.025 debug.go:57 → terminal shell: shell
[DEBUG] 21:31:11.025 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.025 terminal.go:Getenv(OMP_CACHE_DISABLED) - 2.292µs
[TRACE] 21:31:11.025 terminal.go:Shell() - 125ns
[DEBUG] 21:31:11.025 terminal.go:Getenv:164 → 5.9
[TRACE] 21:31:11.025 terminal.go:Getenv(POSH_SHELL_VERSION) - 1.417µs
[DEBUG] 21:31:11.025 debug.go:PrintDebug:23 → segment: Title
[DEBUG] 21:31:11.026 text.go:Render:80 → rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 21:31:11.026 terminal.go:Flags() - 42ns
[TRACE] 21:31:11.026 terminal_unix.go:Root() - 875ns
[TRACE] 21:31:11.026 terminal.go:Shell() - 41ns
[TRACE] 21:31:11.026 terminal.go:StatusCodes() - 41ns
[DEBUG] 21:31:11.026 terminal_unix.go:IsWsl:35 → false
[TRACE] 21:31:11.026 terminal_unix.go:IsWsl() - 2.083µs
[DEBUG] 21:31:11.026 terminal.go:TemplateCache:651 → environment: [TERM_SESSION_ID=w0t3p0:2065635F-AFA6-4E75-AD7E-0CCBB1475F84 SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.p5WcqIaNJM/Listeners LC_TERMINAL_VERSION=3.5.4 COLORFGBG=15;0 ITERM_PROFILE=Default XPC_FLAGS=0x0 LANG=en_US.UTF-8 PWD=/Users/rademartinovic SHELL=/bin/zsh __CFBundleIdentifier=com.googlecode.iterm2 TERM_FEATURES=T3LrMSc7UUw9Ts3BFGsSyHNoSxF TERM_PROGRAM_VERSION=3.5.4 TERM_PROGRAM=iTerm.app PATH=/Users/rademartinovic/.nvm/versions/node/v16.20.2/bin:/Users/rademartinovic/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/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:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/rademartinovic/Applications/iTerm.app/Contents/Resources/utilities:/Users/rademartinovic/Library/Application Support/JetBrains/Toolbox/scripts LC_TERMINAL=iTerm2 COLORTERM=truecolor COMMAND_MODE=unix2003 TERM=xterm-256color TERMINFO_DIRS=/Users/rademartinovic/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo HOME=/Users/rademartinovic TMPDIR=/var/folders/fv/4txzdfp900g0tbpzj2dx82tm0000gn/T/ USER=rademartinovic XPC_SERVICE_NAME=0 LOGNAME=rademartinovic __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0 ITERM_SESSION_ID=w0t3p0:2065635F-AFA6-4E75-AD7E-0CCBB1475F84 ITERM_INJECT_SHELL_INTEGRATION=1 SHLVL=1 OLDPWD=/Users/rademartinovic HOMEBREW_PREFIX=/opt/homebrew HOMEBREW_CELLAR=/opt/homebrew/Cellar HOMEBREW_REPOSITORY=/opt/homebrew INFOPATH=/opt/homebrew/share/info: ZSH=/Users/rademartinovic/.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 PYENV_SHELL=zsh NVM_DIR=/Users/rademartinovic/.nvm NVM_CD_FLAGS=-q NVM_BIN=/Users/rademartinovic/.nvm/versions/node/v16.20.2/bin NVM_INC=/Users/rademartinovic/.nvm/versions/node/v16.20.2/include/node AWS_PROFILE=rmasso-beppo-admin POSH_THEME= POSH_SHELL_VERSION=5.9 POSH_PID=93476 POWERLINE_COMMAND=oh-my-posh CONDA_PROMPT_MODIFIER=false ZLE_RPROMPT_INDENT=0 OSTYPE=darwin23.0 _=/opt/homebrew/bin/oh-my-posh]
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.026 terminal.go:PathSeparator() - 2µs
[TRACE] 21:31:11.026 terminal.go:GOOS() - 42ns
[DEBUG] 21:31:11.026 terminal.go:Pwd:189 → /Users/rademartinovic
[TRACE] 21:31:11.026 terminal.go:Pwd() - 33.208µs
[DEBUG] 21:31:11.026 terminal_unix.go:IsWsl:35 → false
[TRACE] 21:31:11.026 terminal_unix.go:IsWsl() - 1.333µs
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.026 terminal.go:GOOS() - 42ns
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.026 terminal.go:GOOS() - 42ns
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.026 terminal.go:GOOS() - 42ns
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.026 terminal.go:GOOS() - 41ns
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.026 terminal.go:GOOS() - 42ns
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[DEBUG] 21:31:11.026 terminal.go:User:330 → rademartinovic
[TRACE] 21:31:11.026 terminal.go:User() - 9.583µs
[DEBUG] 21:31:11.026 terminal.go:Host:347 → beppo-MBP
[TRACE] 21:31:11.026 terminal.go:Host() - 11.375µs
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[DEBUG] 21:31:11.026 terminal.go:Getenv:164 → 1
[TRACE] 21:31:11.026 terminal.go:Getenv(SHLVL) - 1.416µs
[TRACE] 21:31:11.026 terminal.go:TemplateCache() - 111.959µs
[TRACE] 21:31:11.026 terminal.go:Shell() - 0s
[DEBUG] 21:31:11.026 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.026 terminal.go:Getenv(POSH_CURSOR_LINE) - 189.917µs
[DEBUG] 21:31:11.026 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.026 terminal.go:Getenv(POSH_CURSOR_COLUMN) - 1.166µs
[TRACE] 21:31:11.026 terminal.go:Flags() - 0s
[TRACE] 21:31:11.026 terminal.go:Flags() - 0s
[TRACE] 21:31:11.026 terminal.go:Flags() - 84ns
[TRACE] 21:31:11.026 terminal.go:Flags() - 41ns
[TRACE] 21:31:11.026 terminal.go:Flags() - 0s
[TRACE] 21:31:11.026 terminal.go:Flags() - 42ns
[TRACE] 21:31:11.026 terminal.go:Pwd() - 291ns
[TRACE] 21:31:11.026 terminal.go:GOOS() - 84ns
[DEBUG] 21:31:11.026 segment.go:SetEnabled:115 → segment: Git
[TRACE] 21:31:11.026 terminal.go:Pwd() - 83ns
[TRACE] 21:31:11.026 terminal.go:GOOS() - 41ns
[DEBUG] 21:31:11.026 segment.go:SetEnabled:115 → segment: Path
[DEBUG] 21:31:11.026 path.go:149 → display_cygpath: false
[TRACE] 21:31:11.026 terminal.go:GOOS() - 42ns
[TRACE] 21:31:11.026 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.026 terminal.go:PathSeparator() - 1.083µs
[TRACE] 21:31:11.026 terminal.go:Pwd() - 0s
[TRACE] 21:31:11.026 terminal.go:Shell() - 41ns
[TRACE] 21:31:11.026 terminal.go:Shell() - 0s
[TRACE] 21:31:11.026 terminal.go:Pwd() - 208ns
[TRACE] 21:31:11.026 terminal.go:GOOS() - 83ns
[DEBUG] 21:31:11.026 status.go:Init:53 → {{ .Code }}
[TRACE] 21:31:11.026 terminal.go:Pwd() - 0s
[TRACE] 21:31:11.026 terminal.go:GOOS() - 42ns
[DEBUG] 21:31:11.026 segment.go:SetEnabled:115 → segment: Status
[TRACE] 21:31:11.026 terminal.go:StatusCodes() - 125ns
[DEBUG] 21:31:11.026 text.go:Render:80 → rendering template: {{ .Code }}
[TRACE] 21:31:11.026 terminal.go:Flags() - 42ns
[TRACE] 21:31:11.026 terminal.go:GOOS() - 125ns
[TRACE] 21:31:11.027 terminal.go:Flags() - 250ns
[TRACE] 21:31:11.027 terminal.go:Pwd() - 41ns
[TRACE] 21:31:11.027 terminal.go:GOOS() - 42ns
[DEBUG] 21:31:11.026 path.go:setMappedLocations:563 → mapped_locations_enabled: true
[DEBUG] 21:31:11.026 segment.go:SetEnabled:115 → segment: Session
[DEBUG] 21:31:11.027 path.go:setMappedLocations:564 → 
[DEBUG] 21:31:11.027 path.go:setMappedLocations:565 → 
[TRACE] 21:31:11.027 terminal.go:GOOS() - 41ns
[TRACE] 21:31:11.027 terminal.go:PathSeparator() - 2.167µs
[DEBUG] 21:31:11.027 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.027 terminal.go:GOOS() - 42ns
[TRACE] 21:31:11.027 terminal_unix.go:Root() - 708ns
[TRACE] 21:31:11.027 terminal.go:Getenv(SSH_CONNECTION) - 13.625µs
[DEBUG] 21:31:11.027 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.027 terminal.go:Getenv(SSH_CLIENT) - 1.417µs
[DEBUG] 21:31:11.027 terminal_unix.go:Platform:92 → darwin
[TRACE] 21:31:11.027 terminal.go:GOOS() - 42ns
[TRACE] 21:31:11.027 terminal.go:GOOS() - 42ns
[DEBUG] 21:31:11.027 path.go:setMappedLocations:566 → ~
[DEBUG] 21:31:11.027 terminal_unix.go:IsWsl:35 → false
[TRACE] 21:31:11.027 terminal_unix.go:IsWsl() - 43.666µs
[TRACE] 21:31:11.027 terminal_unix.go:IsWsl2() - 47.208µs
[TRACE] 21:31:11.027 terminal.go:GOOS() - 42ns
[DEBUG] 21:31:11.027 path.go:setMappedLocations:571 → mapped_locations: map[]
[TRACE] 21:31:11.027 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.027 terminal.go:PathSeparator() - 1.459µs
[TRACE] 21:31:11.027 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.027 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.027 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.027 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.027 terminal.go:PathSeparator() - 2.458µs
[TRACE] 21:31:11.027 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.027 terminal.go:GOOS() - 42ns
[DEBUG] 21:31:11.028 terminal.go:CommandPath:389 → /usr/bin/git
[TRACE] 21:31:11.028 terminal.go:CommandPath(git) - 400.917µs
[TRACE] 21:31:11.028 terminal.go:HasCommand(git) - 403.042µs
[TRACE] 21:31:11.028 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.028 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.028 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.028 terminal.go:GOOS() - 42ns
[TRACE] 21:31:11.028 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.028 terminal.go:GOOS() - 42ns
[TRACE] 21:31:11.028 terminal.go:Flags() - 42ns
[DEBUG] 21:31:11.028 path.go:colorizePath:740 → cycle: []
[DEBUG] 21:31:11.028 path.go:getFolderSeparator:273 → NO DATA
[DEBUG] 21:31:11.028 path.go:getFolderSeparator:275 → /
[DEBUG] 21:31:11.028 path.go:colorizePath:743 → cycle_folder_separator: false
[DEBUG] 21:31:11.028 path.go:colorizePath:744 → %s
[DEBUG] 21:31:11.028 path.go:colorizePath:746 → %s
[DEBUG] 21:31:11.028 path.go:colorizePath:747 → %s
[DEBUG] 21:31:11.028 path.go:colorizePath:748 → %s
[TRACE] 21:31:11.028 terminal.go:Pwd() - 83ns
[TRACE] 21:31:11.028 terminal.go:TemplateCache() - 167ns
[TRACE] 21:31:11.028 terminal.go:GOOS() - 0s
[TRACE] 21:31:11.028 terminal.go:StackCount() - 41ns
[TRACE] 21:31:11.028 terminal_unix.go:DirIsWritable(/Users/rademartinovic) - 23.792µs
[TRACE] 21:31:11.028 terminal.go:TemplateCache() - 42ns
[TRACE] 21:31:11.028 terminal.go:TemplateCache() - 125ns
[TRACE] 21:31:11.028 terminal.go:Pwd() - 167ns
[DEBUG] 21:31:11.028 status.go:Enabled:42 → always_enabled: true
[TRACE] 21:31:11.028 terminal.go:TemplateCache() - 42ns
[DEBUG] 21:31:11.028 terminal.go:ResolveSymlink:286 → /Users/rademartinovic
[TRACE] 21:31:11.028 terminal.go:ResolveSymlink(/Users/rademartinovic) - 34.709µs
[ERROR] 21:31:11.028 terminal.go:HasParentFilePath:553 → stat .git: no such file or directory
[TRACE] 21:31:11.028 terminal.go:HasParentFilePath(.git) - 121.333µs
[DEBUG] 21:31:11.033 terminal.go:RunCommand:367 → rademartinovic                Sep 20 21:31
[TRACE] 21:31:11.033 terminal.go:RunCommand(who am i) - 5.617292ms
[TRACE] 21:31:11.033 terminal.go:TemplateCache() - 3.959µs
[DEBUG] 21:31:11.033 text.go:Render:80 → rendering template:  {{ if gt .Code 0 }}{{ else }}{{ end }}
[TRACE] 21:31:11.033 terminal.go:Flags() - 125ns
[DEBUG] 21:31:11.033 text.go:Render:80 → rendering template:   {{ path .Path .Location }}
[TRACE] 21:31:11.033 terminal.go:Flags() - 83ns
[DEBUG] 21:31:11.033 text.go:Render:80 → rendering template:  {{ if .SSHSession }} {{ end }}{{ .UserName }}
[TRACE] 21:31:11.033 terminal.go:Flags() - 208ns
[TRACE] 21:31:11.033 terminal.go:TemplateCache() - 292ns
[TRACE] 21:31:11.033 terminal.go:TemplateCache() - 208ns
[TRACE] 21:31:11.034 terminal.go:TemplateCache() - 42ns
[DEBUG] 21:31:11.034 text.go:Render:80 → rendering template: powerline
[TRACE] 21:31:11.034 terminal.go:Flags() - 125ns
[DEBUG] 21:31:11.034 text.go:Render:80 → rendering template: powerline
[TRACE] 21:31:11.034 terminal.go:Flags() - 83ns
[DEBUG] 21:31:11.034 text.go:Render:80 → rendering template: diamond
[TRACE] 21:31:11.034 terminal.go:Flags() - 42ns
[DEBUG] 21:31:11.034 text.go:Render:80 → rendering template: powerline
[TRACE] 21:31:11.034 terminal.go:Flags() - 42ns
[DEBUG] 21:31:11.034 text.go:Render:80 → rendering template: {{ if gt .Code 0 }}p:red{{ end }}
[TRACE] 21:31:11.034 terminal.go:Flags() - 42ns
[TRACE] 21:31:11.035 terminal.go:TemplateCache() - 125ns
[DEBUG] 21:31:11.035 text.go:Render:80 → rendering template: diamond
[TRACE] 21:31:11.035 terminal.go:Flags() - 0s
[DEBUG] 21:31:11.035 text.go:Render:80 → rendering template: {{ if gt .Code 0 }}p:red{{ end }}
[TRACE] 21:31:11.035 terminal.go:Flags() - 0s
[TRACE] 21:31:11.035 terminal.go:TemplateCache() - 42ns
[TRACE] 21:31:11.035 terminal.go:Shell() - 125ns
[TRACE] 21:31:11.035 terminal.go:Shell() - 41ns
[TRACE] 21:31:11.035 terminal.go:Flags() - 0s
[TRACE] 21:31:11.035 terminal.go:Flags() - 0s
[TRACE] 21:31:11.035 terminal.go:Flags() - 41ns
[DEBUG] 21:31:11.035 python.go:Init:61 → files
[TRACE] 21:31:11.035 terminal.go:Pwd() - 125ns
[TRACE] 21:31:11.035 terminal.go:GOOS() - 0s
[DEBUG] 21:31:11.035 segment.go:SetEnabled:115 → segment: Python
[TRACE] 21:31:11.035 terminal.go:Flags() - 0s
[TRACE] 21:31:11.035 terminal.go:Flags() - 42ns
[TRACE] 21:31:11.035 terminal.go:Pwd() - 42ns
[TRACE] 21:31:11.035 terminal.go:GOOS() - 0s
[DEBUG] 21:31:11.035 segment.go:SetEnabled:115 → segment: Shell
[TRACE] 21:31:11.035 terminal.go:Pwd() - 41ns
[TRACE] 21:31:11.035 terminal.go:GOOS() - 0s
[DEBUG] 21:31:11.035 shell.go:Enabled:28 → mapped_shell_names: map[]
[DEBUG] 21:31:11.035 segment.go:SetEnabled:115 → segment: Time
[TRACE] 21:31:11.035 terminal.go:Shell() - 42ns
[DEBUG] 21:31:11.035 time.go:Enabled:29 → 15:04:05
[TRACE] 21:31:11.035 terminal.go:Flags() - 42ns
[TRACE] 21:31:11.035 terminal.go:TemplateCache() - 41ns
[TRACE] 21:31:11.035 terminal.go:TemplateCache() - 83ns
[TRACE] 21:31:11.035 terminal.go:Pwd() - 84ns
[TRACE] 21:31:11.035 terminal.go:GOOS() - 0s
[DEBUG] 21:31:11.035 segment.go:SetEnabled:115 → segment: Go
[DEBUG] 21:31:11.035 language.go:Enabled:109 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 21:31:11.035 language.go:Enabled:110 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 21:31:11.035 language.go:Enabled:117 → home_enabled: false
[DEBUG] 21:31:11.035 language.go:Enabled:109 → extensions: [*.go go.mod]
[TRACE] 21:31:11.035 terminal.go:Pwd() - 42ns
[TRACE] 21:31:11.035 terminal.go:GOOS() - 42ns
[DEBUG] 21:31:11.035 segment.go:SetEnabled:115 → segment: Node
[DEBUG] 21:31:11.035 language.go:Enabled:109 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[DEBUG] 21:31:11.035 language.go:Enabled:110 → folders: []
[DEBUG] 21:31:11.035 language.go:Enabled:117 → home_enabled: false
[TRACE] 21:31:11.035 terminal.go:Pwd() - 0s
[DEBUG] 21:31:11.035 text.go:Render:80 → rendering template: at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>
[TRACE] 21:31:11.035 terminal.go:Flags() - 0s
[DEBUG] 21:31:11.035 text.go:Render:80 → rendering template: in <p:blue><b>{{ .Name }}</b></>
[TRACE] 21:31:11.035 terminal.go:Flags() - 0s
[TRACE] 21:31:11.035 terminal.go:TemplateCache() - 84ns
[TRACE] 21:31:11.035 terminal.go:TemplateCache() - 42ns
[DEBUG] 21:31:11.035 text.go:Render:80 → rendering template: plain
[TRACE] 21:31:11.035 terminal.go:Flags() - 0s
[DEBUG] 21:31:11.035 text.go:Render:80 → rendering template: plain
[TRACE] 21:31:11.035 terminal.go:Flags() - 42ns
[DEBUG] 21:31:11.035 text.go:Render:80 → rendering template: plain
[TRACE] 21:31:11.035 terminal.go:Flags() - 42ns
[DEBUG] 21:31:11.035 text.go:Render:80 → rendering template: plain
[TRACE] 21:31:11.035 terminal.go:Flags() - 42ns
[DEBUG] 21:31:11.035 text.go:Render:80 → rendering template: plain
[TRACE] 21:31:11.035 terminal.go:Flags() - 42ns
[TRACE] 21:31:11.035 terminal.go:Shell() - 0s
[TRACE] 21:31:11.035 terminal.go:Shell() - 42ns
[TRACE] 21:31:11.035 terminal.go:Flags() - 0s
[TRACE] 21:31:11.035 terminal.go:Shell() - 42ns
[TRACE] 21:31:11.035 terminal.go:Flags() - 0s
[DEBUG] 21:31:11.035 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.035 terminal.go:Getenv(LOCALAPPDATA) - 7.541µs
[DEBUG] 21:31:11.035 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.035 terminal.go:Getenv(OMP_CACHE_DIR) - 2.708µs
[DEBUG] 21:31:11.035 terminal.go:Getenv:164 → NO DATA
[TRACE] 21:31:11.035 terminal.go:Getenv(XDG_CACHE_HOME) - 2.375µs
[TRACE] 21:31:11.036 terminal.go:CachePath() - 50.75µs
[TRACE] 21:31:11.036 terminal.go:Flags() - 125ns
JanDeDobbeleer commented 1 month ago

Also, when I issue eval "$(oh-my-posh init zsh --debug)"

@RockyMM yup, that's definitely not supported as that doesn't export the shell script alone, but the additional logs.

It's definitely not normal, and I know we don't have anything internal that can block for such a long time. Debug seems to show the same.

Does the issue also persist with only using oh-my-posh? By which I mean, remove everything but oh-my-posh init from zshrc.