Code of Conduct
What happened?
Using Windows Terminal (Windows 10), loading omp shell takes anywhere from 30 to 60 seconds. Previous answers have told me to add the oh-my-posh.exe to Window Defender exclusions, and I have done that. But, it is still equally slow.
Loading personal and system profiles took 63180ms.
What's going on here? If there's way to profile this loading specifically, let me know.
Theme
catppuccin_frappe.omp.json
A modified version of Catppuccin.
I am also using the following plugins:
- Posh-Git
- Terminal-Icons
- PSReadLine
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output
Version: 24.19.0
Shell: pwsh (5.1.19041.5486)
Prompt:
[USER]@[USERNAME] ~
Segments:
ConsoleTitle(false) - 0 ms
Os(true) - 2 ms
Session(true) - 0 ms
Path(true) - 9 ms
Git(false) - 98 ms
Text(true) - 0 ms
Run duration: 122.1057ms
Cache path: C:\Users\[USER]\AppData\Local\oh-my-posh
Config path: C:\Users\[USER]\catppuccin_frappe.omp.json
Logs:
[DEBUG] 11:31:10.808 command.go:execute:989 → debug mode enabled
[DEBUG] 11:31:10.811 debug.go:40 → config set using POSH_THEME: C:\Users\[USER]\catppuccin_frappe.omp.json
[TRACE] 11:31:10.811 debug.go() - 577.7µs
[TRACE] 11:31:10.818 load.go:Load() - 5.45ms
[TRACE] 11:31:10.818 debug.go() - 6.7672ms
[DEBUG] 11:31:10.818 debug.go:52 → plain mode enabled
[TRACE] 11:31:10.820 terminal.go() - 0s
[DEBUG] 11:31:10.820 terminal.go:59 → loading cache file: C:\Users\[USER]\AppData\Local\oh-my-posh\omp.cache
[DEBUG] 11:31:10.820 terminal.go:59 → loading cache key: upgrade_check
[TRACE] 11:31:10.820 terminal.go(C:\Users\[USER]\AppData\Local\oh-my-posh\omp.cache) - 577.8µs
[TRACE] 11:31:10.821 terminal.go() - 0s
[DEBUG] 11:31:10.821 terminal.go:59 → loading cache file: C:\Users\[USER]\AppData\Local\oh-my-posh\omp.cache.142ff4d6-12d9-4835-ab0e-94e000c3dde8
[DEBUG] 11:31:10.821 terminal.go:59 → loading cache key: prompt_count_cache
[TRACE] 11:31:10.821 terminal.go(C:\Users\[USER]\AppData\Local\oh-my-posh\omp.cache.142ff4d6-12d9-4835-ab0e-94e000c3dde8) - 0s
[TRACE] 11:31:10.822 terminal.go:Init() - 0s
[TRACE] 11:31:10.822 terminal.go() - 0s
[DEBUG] 11:31:10.822 terminal.go:Init:67 → C:\Users\[USER]
[TRACE] 11:31:10.822 terminal.go:Init() - 638.3µs
[TRACE] 11:31:10.822 debug.go() - 4.2013ms
[TRACE] 11:31:10.822 init.go:Init() - 0s
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[DEBUG] 11:31:10.823 home.go:Home:26 → C:\Users\[USER]
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[DEBUG] 11:31:10.823 cache.go:loadCache:60 → [USER]
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[DEBUG] 11:31:10.823 cache.go:loadCache:61 → [USERNAME]
[TRACE] 11:31:10.823 cache.go:loadCache() - 517.3µs
[TRACE] 11:31:10.823 cache.go:loadCache() - 0s
[DEBUG] 11:31:10.823 cache.go:loadCache:71 → NO DATA
[TRACE] 11:31:10.823 cache.go:loadCache(SHLVL) - 0s
[DEBUG] 11:31:10.823 debug.go:61 → terminal program: Windows Terminal
[DEBUG] 11:31:10.823 debug.go:61 → terminal shell: shell
[DEBUG] 11:31:10.824 config.go:MakeColors:58 → NO DATA
[TRACE] 11:31:10.824 config.go:MakeColors(OMP_CACHE_DISABLED) - 516µs
[TRACE] 11:31:10.825 colors_windows.go:GetAccentColor(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[DEBUG] 11:31:10.825 colors_windows.go:GetAccentColor:19 → ColorizationColor(DWORD): 0xC40078D7
[TRACE] 11:31:10.825 colors.go:SetAccentColor() - 572.5µs
[TRACE] 11:31:10.825 colors.go:MakeColors() - 572.5µs
[TRACE] 11:31:10.825 debug.go:PrintDebug() - 0s
[DEBUG] 11:31:10.825 debug.go:PrintDebug:16 → 5.1.19041.5486
[TRACE] 11:31:10.825 debug.go:PrintDebug(POSH_SHELL_VERSION) - 0s
[DEBUG] 11:31:10.825 debug.go:72 → segment: Title
[TRACE] 11:31:10.826 engine.go:getTitleTemplateText() - 0s
[TRACE] 11:31:10.826 primary.go:needsPrimaryRightPrompt() - 0s
[DEBUG] 11:31:10.826 terminal.go:CursorPosition:583 → 8
[TRACE] 11:31:10.826 terminal.go:CursorPosition(POSH_CURSOR_LINE) - 0s
[DEBUG] 11:31:10.826 terminal.go:CursorPosition:587 → 1
[TRACE] 11:31:10.826 terminal.go:CursorPosition(POSH_CURSOR_COLUMN) - 0s
[TRACE] 11:31:10.826 primary.go:writePrimaryPrompt() - 0s
[TRACE] 11:31:10.826 primary.go:writePrimaryPrompt() - 0s
[TRACE] 11:31:10.826 segment.go:Execute() - 0s
[TRACE] 11:31:10.826 segment.go:Execute() - 0s
[DEBUG] 11:31:10.826 home.go:Home:26 → C:\Users\[USER]
[DEBUG] 11:31:10.826 home.go:Home:26 → C:\Users\[USER]
[DEBUG] 11:31:10.826 home.go:Home:26 → C:\Users\[USER]
[TRACE] 11:31:10.826 terminal.go:DirMatchesOneOf() - 0s
[TRACE] 11:31:10.826 terminal.go:DirMatchesOneOf() - 0s
[TRACE] 11:31:10.826 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:31:10.826 segment.go:Execute:110 → segment: Session
[DEBUG] 11:31:10.826 segment.go:Execute:110 → segment: Os
[DEBUG] 11:31:10.826 segment.go:Execute:110 → segment: Text
[DEBUG] 11:31:10.826 segment.go:Execute:112 → no toggles found
[DEBUG] 11:31:10.826 segment.go:Execute:112 → no toggles found
[TRACE] 11:31:10.826 segment.go:Execute() - 0s
[DEBUG] 11:31:10.826 home.go:Home:26 → C:\Users\[USER]
[TRACE] 11:31:10.826 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:31:10.826 segment.go:Execute:110 → segment: Path
[DEBUG] 11:31:10.826 segment.go:Execute:112 → no toggles found
[DEBUG] 11:31:10.826 session.go:activeSSHSession:31 → NO DATA
[TRACE] 11:31:10.826 session.go:activeSSHSession(SSH_CONNECTION) - 0s
[DEBUG] 11:31:10.826 session.go:activeSSHSession:31 → NO DATA
[TRACE] 11:31:10.826 os.go:Enabled() - 0s
[TRACE] 11:31:10.826 session.go:activeSSHSession(SSH_CLIENT) - 0s
[DEBUG] 11:31:10.827 path.go:147 → display_cygpath: false
[TRACE] 11:31:10.828 path.go:setPaths() - 0s
[TRACE] 11:31:10.828 path.go:setPaths() - 0s
[TRACE] 11:31:10.828 path.go:setPaths() - 0s
[TRACE] 11:31:10.828 path.go:setPaths() - 0s
[DEBUG] 11:31:10.828 os.go:Enabled:33 →
[TRACE] 11:31:10.829 path.go:parsePath() - 0s
[DEBUG] 11:31:10.829 path.go:setMappedLocations:557 → mapped_locations_enabled: true
[DEBUG] 11:31:10.829 path.go:setMappedLocations:558 →
[DEBUG] 11:31:10.829 path.go:setMappedLocations:559 →
[TRACE] 11:31:10.829 segment.go:Execute() - 0s
[DEBUG] 11:31:10.829 home.go:Home:26 → C:\Users\[USER]
[TRACE] 11:31:10.829 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:31:10.829 segment.go:Execute:110 → segment: Git
[DEBUG] 11:31:10.829 segment.go:Execute:112 → no toggles found
[DEBUG] 11:31:10.829 home.go:Home:26 → C:\Users\[USER]
[TRACE] 11:31:10.829 scm.go:hasCommand() - 0s
[TRACE] 11:31:10.830 clean.go:Clean() - 0s
[TRACE] 11:31:10.832 path.go:normalize() - 0s
[TRACE] 11:31:10.832 segment.go:string({{.Icon}} ) - 3.027ms
[DEBUG] 11:31:10.832 path.go:setMappedLocations:560 → ~
[DEBUG] 11:31:10.832 path.go:setMappedLocations:565 → mapped_locations: map[]
[TRACE] 11:31:10.832 clean.go:Clean() - 0s
[TRACE] 11:31:10.832 path.go:normalize() - 0s
[TRACE] 11:31:10.833 clean.go:Clean() - 0s
[TRACE] 11:31:10.833 path.go:normalize() - 0s
[TRACE] 11:31:10.833 path.go:parsePath() - 0s
[TRACE] 11:31:10.833 path.go:parsePath() - 0s
[TRACE] 11:31:10.833 path.go:parsePath() - 0s
[TRACE] 11:31:10.833 path.go:setStyle() - 0s
[DEBUG] 11:31:10.833 path.go:colorizePath:734 → cycle: []
[DEBUG] 11:31:10.834 path.go:getFolderSeparator:267 → NO DATA
[DEBUG] 11:31:10.834 path.go:getFolderSeparator:269 → \
[DEBUG] 11:31:10.834 path.go:colorizePath:737 → cycle_folder_separator: false
[DEBUG] 11:31:10.834 path.go:colorizePath:738 → %s
[DEBUG] 11:31:10.834 path.go:colorizePath:740 → %s
[DEBUG] 11:31:10.834 path.go:colorizePath:741 → %s
[DEBUG] 11:31:10.834 path.go:colorizePath:742 → %s
[TRACE] 11:31:10.834 path.go:Enabled() - 0s
[TRACE] 11:31:10.834 path.go:Enabled() - 0s
[TRACE] 11:31:10.834 path.go:Enabled() - 0s
[TRACE] 11:31:10.834 segment.go:string({{ .UserName }}@{{ .HostName }} ) - 590.5µs
[TRACE] 11:31:10.834 segment.go:resolve(plain) - 0s
[DEBUG] 11:31:10.835 terminal_windows.go:DirIsWritable:216 → not current user or in group
[DEBUG] 11:31:10.835 terminal_windows.go:DirIsWritable:216 → current user is member of S-1-5-32-544
[DEBUG] 11:31:10.835 win32_windows.go:isWriteable:271 ↓
WRITE_DAC
WRITE_OWNER
SYNCHRONIZE
DELETE
READ_CONTROL
[DEBUG] 11:31:10.836 terminal_windows.go:DirIsWritable:216 → user has write access
[TRACE] 11:31:10.836 path.go:Enabled() - 2.0163ms
[TRACE] 11:31:10.836 segment.go:string({{ .Path }} ) - 0s
[TRACE] 11:31:10.836 segment.go:resolve(plain) - 0s
[DEBUG] 11:31:10.925 terminal.go:HasCommand:323 → C:\Program Files\Git\cmd\git.exe
[TRACE] 11:31:10.925 terminal.go:HasCommand(git.exe) - 96.0955ms
[TRACE] 11:31:10.925 scm.go:hasCommand(git.exe) - 96.0955ms
[DEBUG] 11:31:10.926 git.go:shouldDisplay:344 → fetch_bare_info: false
[DEBUG] 11:31:10.927 terminal.go:HasParentFilePath:446 → C:\Users\[USER]
[TRACE] 11:31:10.927 terminal.go:HasParentFilePath(C:\Users\[USER]) - 556.1µs
[ERROR] 11:31:10.928 git.go:shouldDisplay:354 → CreateFile .git: The system cannot find the file specified.
[TRACE] 11:31:10.928 git.go:shouldDisplay(.git) - 1.6977ms
[TRACE] 11:31:10.928 segment.go:resolve(plain) - 0s
[TRACE] 11:31:10.928 segment.go:string() - 0s
[TRACE] 11:31:10.928 segment.go:resolve(plain) - 0s
[TRACE] 11:31:10.928 engine.go:applyPowerShellBleedPatch() - 0s
[TRACE] 11:31:10.928 primary.go:Primary() - 0s
[TRACE] 11:31:10.928 debug.go:PrintDebug() - 0s
[TRACE] 11:31:10.928 debug.go:PrintDebug() - 0s
Code of Conduct
What happened?
Using Windows Terminal (Windows 10), loading omp shell takes anywhere from 30 to 60 seconds. Previous answers have told me to add the
oh-my-posh.exeto Window Defender exclusions, and I have done that. But, it is still equally slow.What's going on here? If there's way to profile this loading specifically, let me know.
Theme
catppuccin_frappe.omp.json
A modified version of Catppuccin.
I am also using the following plugins:
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output