JanDeDobbeleer / oh-my-posh

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

Init is Extremely Slow #5415

Closed rohit-serri closed 3 months ago

rohit-serri commented 3 months ago

Code of Conduct

What happened?

The loading of profile with bare init command is too slow, upwards of about 10-12 seconds and is consistent across multiple powershell windows.

i have other things in my $PROFILE which before using oh my posh were loading up in about 1 second

& ([ScriptBlock]::Create((oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\1_shell.omp.json" --print) -join "`n"))

if ($env:TERM_PROGRAM -eq "vscode") {
  Set-PSReadLineKeyHandler -Chord 'Ctrl+w' -Function BackwardKillWord
}

Function CDE { Set-Location -Path E:\ }

Set-Alias -Name goe -Value CDE

Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
Import-Module Posh-Git
Register-ArgumentCompleter -Native -CommandName az -ScriptBlock {
  param($commandName, $wordToComplete, $cursorPosition)
  $completion_file = New-TemporaryFile
  $env:ARGCOMPLETE_USE_TEMPFILES = 1
  $env:_ARGCOMPLETE_STDOUT_FILENAME = $completion_file
  $env:COMP_LINE = $wordToComplete
  $env:COMP_POINT = $cursorPosition
  $env:_ARGCOMPLETE = 1
  $env:_ARGCOMPLETE_SUPPRESS_SPACE = 0
  $env:_ARGCOMPLETE_IFS = "`n"
  $env:_ARGCOMPLETE_SHELL = 'powershell'
  az 2>&1 | Out-Null
  Get-Content $completion_file | Sort-Object | ForEach-Object {
    [System.Management.Automation.CompletionResult]::new($_, $_, "ParameterValue", $_)
  }
  Remove-Item $completion_file, Env:\_ARGCOMPLETE_STDOUT_FILENAME, Env:\ARGCOMPLETE_USE_TEMPFILES, Env:\COMP_LINE, Env:\COMP_POINT, Env:\_ARGCOMPLETE, Env:\_ARGCOMPLETE_SUPPRESS_SPACE, Env:\_ARGCOMPLETE_IFS, Env:\_ARGCOMPLETE_SHELL
}

Theme

1_shell but tested with other themes as well same results

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Segments:

ConsoleTitle(true)  -   0 ms
Session(true)       -   0 ms
Time(true)          -   0 ms
Executiontime(true) -   0 ms
Sysinfo(true)       -   0 ms
Path(true)          -   2 ms
Status(true)        -   1 ms

Run duration: 31.9417ms

Cache path: C:\Users\RAP\AppData\Local\oh-my-posh

Config path: C:\Users\RAP\AppData\Local\Programs\oh-my-posh\themes\1_shell.omp.json

Logs:

[DEBUG] 13:03:00.987 debug.go:42 → debug mode enabled
[DEBUG] 13:03:00.988 terminal.go:Getenv:171 → C:\Users\RAP\AppData\Local
[TRACE] 13:03:00.988 terminal.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 13:03:00.988 terminal_windows.go:CachePath() - 518.5µs
[DEBUG] 13:03:00.988 terminal.go:70 → loading cache file: C:\Users\RAP\AppData\Local\oh-my-posh\omp.cache
[TRACE] 13:03:00.988 terminal.go(C:\Users\RAP\AppData\Local\oh-my-posh\omp.cache) - 0s
[DEBUG] 13:03:00.988 terminal.go:Getenv:171 → C:\Users\RAP\AppData\Local
[TRACE] 13:03:00.988 terminal.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 13:03:00.988 terminal_windows.go:CachePath() - 0s
[DEBUG] 13:03:00.988 terminal.go:70 → loading cache file: C:\Users\RAP\AppData\Local\oh-my-posh\omp.cache.17744
[DEBUG] 13:03:00.989 terminal.go:70 → loading cache key: prompt_count_cache
[DEBUG] 13:03:00.989 terminal.go:70 → loading cache key: template_cache
[TRACE] 13:03:00.989 terminal.go(C:\Users\RAP\AppData\Local\oh-my-posh\omp.cache.17744) - 517µs
[DEBUG] 13:03:00.989 terminal.go:Getenv:171 → C:\Users\RAP\AppData\Local\Programs\oh-my-posh\themes\1_shell.omp.json
[TRACE] 13:03:00.989 terminal.go:Getenv(POSH_THEME) - 0s
[DEBUG] 13:03:00.989 terminal.go:resolveConfigPath:99 → config set using POSH_THEME: C:\Users\RAP\AppData\Local\Programs\oh-my-posh\themes\1_shell.omp.json
[TRACE] 13:03:00.989 terminal.go:resolveConfigPath() - 0s
[TRACE] 13:03:00.989 terminal.go:SetPromptCount() - 0s
[TRACE] 13:03:00.989 terminal.go:Init() - 2.0738ms
[TRACE] 13:03:00.989 terminal.go:Flags() - 0s
[TRACE] 13:03:00.989 load.go:loadConfig() - 571.2µs
[TRACE] 13:03:00.989 terminal.go:Flags() - 0s
[DEBUG] 13:03:00.989 debug.go:50 → terminal program: Windows Terminal
[DEBUG] 13:03:00.989 debug.go:50 → terminal shell: shell
[DEBUG] 13:03:00.989 terminal.go:Getenv:171 → NO DATA
[TRACE] 13:03:00.989 terminal.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 13:03:00.989 terminal_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.989 terminal.go:GOOS() - 0s
[DEBUG] 13:03:00.990 terminal_windows.go:WindowsRegistryKeyValue:226 → ColorizationColor(DWORD): 0xC40078D4
[TRACE] 13:03:00.990 terminal.go:Shell() - 0s
[DEBUG] 13:03:00.990 terminal.go:Getenv:171 → 7.4.4
[TRACE] 13:03:00.990 terminal.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 13:03:00.990 debug.go:PrintDebug:23 → segment: Title
[DEBUG] 13:03:00.990 text.go:Render:79 → rendering template: {{ .Folder }}
[TRACE] 13:03:00.990 terminal.go:Flags() - 0s
[TRACE] 13:03:00.990 terminal_windows.go:Root() - 0s
[TRACE] 13:03:00.990 terminal.go:Shell() - 0s
[TRACE] 13:03:00.990 terminal.go:StatusCodes() - 0s
[TRACE] 13:03:00.990 terminal_windows.go:IsWsl() - 0s
[DEBUG] 13:03:00.991 terminal.go:TemplateCache:660 → environment: [ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\RAP\AppData\Roaming CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=ACER-NITRO-5 ComSpec=C:\Windows\system32\cmd.exe CONDA_PROMPT_MODIFIER=False DriverData=C:\Windows\System32\Drivers\DriverData HOMEDRIVE=C: HOMEPATH=\Users\RAP LOCALAPPDATA=C:\Users\RAP\AppData\Local LOGONSERVER=\\ACER-NITRO-5 NUMBER_OF_PROCESSORS=8 OneDrive=C:\Users\RAP\OneDrive OS=Windows_NT Path=C:\Program Files\WindowsApps\Microsoft.PowerShell_7.4.4.0_x64__8wekyb3d8bbwe;C:\Program Files\OpenSSH\;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Tesseract-OCR\tesseract.exe;C:\Program Files\gs\gs10.01.1\bin;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\Amazon\AWSCLIV2\;C:\Program Files\Cloudflare\Cloudflare WARP\;C:\Program Files\GitHub CLI\;C:\Users\RAP\AppData\Local\Programs\Python\Python312\Scripts\;C:\Users\RAP\AppData\Local\Programs\Python\Python312\;C:\Users\RAP\AppData\Local\Programs\Python\Launcher\;C:\Users\RAP\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\RAP\AppData\Local\Programs\Python\Python311\;C:\Users\RAP\AppData\Local\Microsoft\WindowsApps;C:\Users\RAP\AppData\Local\Programs\Microsoft VS Code\bin;D:\progfiles\ffmpeg\bin;D:\progfiles\sqlite3;C:\Users\RAP\AppData\Local\spicetify;E:\platform-tools;C:\Users\RAP\.deta\bin;C:\Program Files\Tesseract-OCR\;D:\progfiles\poppler\bin;C:\Program Files\gs\gs10.01.1\bin;C:\Users\RAP\AppData\Roaming\Python\Scripts;C:\Program Files\pgAdmin 4\v7\runtime;D:\progfiles\speedtest.exe;D:\progfiles\platform-tools;C:\Users\RAP\AppData\Roaming\npm;C:\Users\RAP\AppData\Local\Programs\oh-my-posh\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=40 POSH_INSTALLER=winget POSH_PID=17744 POSH_SHELL_VERSION=7.4.4 POSH_THEME=C:\Users\RAP\AppData\Local\Programs\oh-my-posh\themes\1_shell.omp.json POSH_THEMES_PATH=C:\Users\RAP\AppData\Local\Programs\oh-my-posh\themes POWERLINE_COMMAND=oh-my-posh PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 165 Stepping 2, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=a502 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=D:\My Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\windowsapps\microsoft.powershell_7.4.4.0_x64__8wekyb3d8bbwe\Modules;C:\Users\RAP\Documents\WindowsPowerShell\Modules;;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\Windows TEMP=C:\Users\RAP\AppData\Local\Temp TMP=C:\Users\RAP\AppData\Local\Temp USERDOMAIN=ACER-NITRO-5 USERDOMAIN_ROAMINGPROFILE=ACER-NITRO-5 USERNAME=RAP USERPROFILE=C:\Users\RAP windir=C:\Windows WSLENV=WT_SESSION:WT_PROFILE_ID: WT_PROFILE_ID={574e775e-4f2a-5b96-ac1e-a2962a402336} WT_SESSION=4ae67768-586c-48b6-b46b-942442323242 ZES_ENABLE_SYSMAN=1]
[TRACE] 13:03:00.991 terminal.go:GOOS() - 0s
[DEBUG] 13:03:00.991 terminal.go:Pwd:201 → C:\Users\RAP
[TRACE] 13:03:00.991 terminal.go:Pwd() - 0s
[DEBUG] 13:03:00.991 terminal_windows.go:58 → C:\Users\RAP
[TRACE] 13:03:00.991 terminal_windows.go:IsWsl() - 0s
[TRACE] 13:03:00.991 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.991 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.991 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.991 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.991 terminal.go:GOOS() - 0s
[TRACE] 13:03:00.991 terminal.go:GOOS() - 0s
[DEBUG] 13:03:00.991 terminal.go:User:339 → RAP
[TRACE] 13:03:00.991 terminal.go:User() - 0s
[DEBUG] 13:03:00.991 terminal.go:Host:356 → Acer-Nitro-5
[TRACE] 13:03:00.991 terminal.go:Host() - 0s
[TRACE] 13:03:00.991 terminal.go:GOOS() - 0s
[DEBUG] 13:03:00.991 terminal.go:Getenv:171 → NO DATA
[TRACE] 13:03:00.991 terminal.go:Getenv(SHLVL) - 0s
[TRACE] 13:03:00.991 terminal.go:TemplateCache() - 632.5µs
[TRACE] 13:03:00.991 terminal.go:Shell() - 0s
[DEBUG] 13:03:00.991 terminal.go:Getenv:171 → 40
[TRACE] 13:03:00.991 terminal.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 13:03:00.991 terminal.go:Getenv:171 → 1
[TRACE] 13:03:00.991 terminal.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 13:03:00.991 terminal.go:Flags() - 0s
[TRACE] 13:03:00.991 terminal.go:Flags() - 0s
[TRACE] 13:03:00.991 terminal.go:Flags() - 0s
[TRACE] 13:03:00.991 terminal.go:Pwd() - 0s
[TRACE] 13:03:00.991 terminal.go:Flags() - 0s
[DEBUG] 13:03:00.991 terminal_windows.go:58 → C:\Users\RAP
[TRACE] 13:03:00.991 terminal.go:GOOS() - 0s
[DEBUG] 13:03:00.991 segment.go:SetEnabled:115 → segment: Git
[TRACE] 13:03:00.991 terminal.go:GOOS() - 0s
[DEBUG] 13:03:00.991 terminal.go:Getenv:171 → C:\Users\RAP\AppData\Local
[TRACE] 13:03:00.991 terminal.go:Flags() - 0s
[TRACE] 13:03:00.991 terminal.go:Pwd() - 0s
[TRACE] 13:03:00.991 terminal.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 13:03:00.991 terminal_windows.go:58 → C:\Users\RAP
[TRACE] 13:03:00.991 terminal.go:GOOS() - 0s
[DEBUG] 13:03:00.991 segment.go:SetEnabled:115 → segment: Session
[DEBUG] 13:03:00.991 terminal.go:Getenv:171 → NO DATA
[TRACE] 13:03:00.991 terminal.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 13:03:00.991 terminal.go:Getenv:171 → NO DATA
[TRACE] 13:03:00.991 terminal.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 13:03:00.991 terminal.go:TemplateCache() - 0s
[TRACE] 13:03:00.991 terminal.go:Pwd() - 0s
[DEBUG] 13:03:00.991 terminal_windows.go:58 → C:\Users\RAP
[TRACE] 13:03:00.991 terminal.go:GOOS() - 0s
[DEBUG] 13:03:00.991 segment.go:SetEnabled:115 → segment: Time
[DEBUG] 13:03:00.991 time.go:Enabled:29 → Monday <#ffffff>at</> 3:04 PM
[TRACE] 13:03:00.991 terminal.go:TemplateCache() - 0s
[DEBUG] 13:03:01.014 terminal.go:CommandPath:398 → C:\Program Files\Git\cmd\git.exe
[TRACE] 13:03:01.014 terminal.go:CommandPath(git.exe) - 22.8993ms
[TRACE] 13:03:01.014 terminal.go:HasCommand(git.exe) - 22.8993ms
[DEBUG] 13:03:01.014 git.go:shouldDisplay:285 → fetch_bare_info: false
[TRACE] 13:03:01.014 terminal.go:Pwd() - 0s
[DEBUG] 13:03:01.015 terminal.go:ResolveSymlink:298 → C:\Users\RAP
[TRACE] 13:03:01.015 terminal.go:ResolveSymlink(C:\Users\RAP) - 515.5µs
[ERROR] 13:03:01.015 terminal.go:HasParentFilePath:562 → CreateFile .git: The system cannot find the file specified.
[TRACE] 13:03:01.015 terminal.go:HasParentFilePath(.git) - 1.0297ms
[DEBUG] 13:03:01.015 text.go:Render:79 → rendering template: {{ .UserName }} <#ffffff>on</>
[TRACE] 13:03:01.015 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.015 text.go:Render:79 → rendering template:  {{ .CurrentDate | date .Format }}
[TRACE] 13:03:01.015 terminal.go:Flags() - 0s
[TRACE] 13:03:01.015 terminal.go:TemplateCache() - 0s
[TRACE] 13:03:01.015 terminal.go:TemplateCache() - 0s
[TRACE] 13:03:01.016 terminal.go:Shell() - 0s
[DEBUG] 13:03:01.016 text.go:Render:79 → rendering template: diamond
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.016 text.go:Render:79 → rendering template: diamond
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.016 text.go:Render:79 → rendering template: diamond
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[TRACE] 13:03:01.016 terminal.go:Shell() - 0s
[TRACE] 13:03:01.016 terminal.go:Shell() - 0s
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.016 sysinfo.go:Init:36 → precision: 2
[TRACE] 13:03:01.016 terminal.go:Pwd() - 0s
[DEBUG] 13:03:01.016 terminal_windows.go:58 → C:\Users\RAP
[TRACE] 13:03:01.016 terminal.go:GOOS() - 0s
[DEBUG] 13:03:01.016 segment.go:SetEnabled:115 → segment: Text
[TRACE] 13:03:01.016 terminal.go:TemplateCache() - 0s
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[TRACE] 13:03:01.016 terminal.go:Pwd() - 0s
[DEBUG] 13:03:01.016 terminal_windows.go:58 → C:\Users\RAP
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[TRACE] 13:03:01.016 terminal.go:GOOS() - 0s
[DEBUG] 13:03:01.016 segment.go:SetEnabled:115 → segment: Root
[TRACE] 13:03:01.016 terminal.go:Pwd() - 0s
[TRACE] 13:03:01.016 terminal_windows.go:Root() - 0s
[DEBUG] 13:03:01.016 segment.go:SetEnabled:115 → segment: Executiontime
[DEBUG] 13:03:01.016 terminal_windows.go:58 → C:\Users\RAP
[TRACE] 13:03:01.016 terminal.go:GOOS() - 0s
[DEBUG] 13:03:01.016 segment.go:SetEnabled:115 → segment: Sysinfo
[DEBUG] 13:03:01.016 executiontime.go:Enabled:57 → always_enabled: false
[TRACE] 13:03:01.016 terminal.go:TemplateCache() - 0s
[TRACE] 13:03:01.016 terminal.go:ExecutionTime() - 0s
[DEBUG] 13:03:01.016 executiontime.go:Enabled:59 → threshold: 0.000000
[DEBUG] 13:03:01.016 executiontime.go:Enabled:63 → dallas
[TRACE] 13:03:01.016 terminal.go:TemplateCache() - 0s
[DEBUG] 13:03:01.016 text.go:Render:79 → rendering template:  <#ffffff>MEM:</> {{ round .PhysicalPercentUsed .Precision }}% ({{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0) }}GB)
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.016 text.go:Render:79 → rendering template:  {{ .FormattedMs }}s <#ffffff></>
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.016 text.go:Render:79 → rendering template:
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[TRACE] 13:03:01.016 terminal.go:TemplateCache() - 0s
[TRACE] 13:03:01.016 terminal.go:TemplateCache() - 0s
[TRACE] 13:03:01.016 terminal.go:TemplateCache() - 0s
[DEBUG] 13:03:01.016 text.go:Render:79 → rendering template: plain
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.016 text.go:Render:79 → rendering template: diamond
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.016 text.go:Render:79 → rendering template: diamond
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.016 text.go:Render:79 → rendering template: diamond
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.016 terminal_windows.go:TerminalWidth:116 → terminal width: 156
[TRACE] 13:03:01.016 terminal_windows.go:TerminalWidth() - 0s
[TRACE] 13:03:01.016 terminal.go:Shell() - 0s
[TRACE] 13:03:01.016 terminal.go:Shell() - 0s
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.016 status.go:Init:53 → {{ .Code }}
[TRACE] 13:03:01.016 terminal.go:Pwd() - 0s
[DEBUG] 13:03:01.016 terminal_windows.go:58 → C:\Users\RAP
[TRACE] 13:03:01.016 terminal.go:GOOS() - 0s
[DEBUG] 13:03:01.016 segment.go:SetEnabled:115 → segment: Status
[TRACE] 13:03:01.016 terminal.go:StatusCodes() - 0s
[DEBUG] 13:03:01.016 text.go:Render:79 → rendering template: {{ .Code }}
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[TRACE] 13:03:01.016 terminal.go:Flags() - 0s
[TRACE] 13:03:01.016 terminal.go:Pwd() - 0s
[DEBUG] 13:03:01.017 terminal_windows.go:58 → C:\Users\RAP
[TRACE] 13:03:01.017 terminal.go:GOOS() - 0s
[DEBUG] 13:03:01.017 segment.go:SetEnabled:115 → segment: Path
[DEBUG] 13:03:01.017 path.go:124 → display_cygpath: false
[TRACE] 13:03:01.017 terminal.go:GOOS() - 0s
[TRACE] 13:03:01.017 terminal.go:PathSeparator() - 0s
[TRACE] 13:03:01.017 terminal.go:Pwd() - 0s
[TRACE] 13:03:01.017 terminal.go:Shell() - 0s
[TRACE] 13:03:01.017 terminal.go:Shell() - 0s
[TRACE] 13:03:01.017 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.017 path.go:replaceMappedLocations:516 → mapped_locations_enabled: true
[DEBUG] 13:03:01.017 path.go:replaceMappedLocations:517 → 
[DEBUG] 13:03:01.017 path.go:replaceMappedLocations:518 → 
[DEBUG] 13:03:01.017 terminal_windows.go:58 → C:\Users\RAP
[TRACE] 13:03:01.017 terminal.go:TemplateCache() - 0s
[TRACE] 13:03:01.017 terminal.go:GOOS() - 0s
[TRACE] 13:03:01.017 terminal.go:GOOS() - 0s
[DEBUG] 13:03:01.017 path.go:replaceMappedLocations:519 → home
[DEBUG] 13:03:01.017 path.go:replaceMappedLocations:524 → mapped_locations: map[]
[TRACE] 13:03:01.017 terminal.go:GOOS() - 0s
[DEBUG] 13:03:01.017 status.go:Enabled:42 → always_enabled: true
[TRACE] 13:03:01.017 terminal.go:TemplateCache() - 0s
[TRACE] 13:03:01.017 terminal.go:GOOS() - 0s
[TRACE] 13:03:01.017 terminal.go:GOOS() - 0s
[TRACE] 13:03:01.017 terminal.go:GOOS() - 0s
[TRACE] 13:03:01.017 terminal.go:GOOS() - 0s
[TRACE] 13:03:01.017 terminal.go:GOOS() - 0s
[TRACE] 13:03:01.017 terminal.go:GOOS() - 0s
[TRACE] 13:03:01.017 terminal.go:GOOS() - 0s
[DEBUG] 13:03:01.017 path.go:makeFolderFormatMap:840 → NO DATA
[TRACE] 13:03:01.017 terminal.go:Pwd() - 0s
[TRACE] 13:03:01.017 terminal.go:TemplateCache() - 0s
[TRACE] 13:03:01.017 terminal.go:StackCount() - 0s
[DEBUG] 13:03:01.017 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 13:03:01.017 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 13:03:01.017 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 13:03:01.017 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 13:03:01.017 terminal_windows.go:DirIsWritable() - 0s
[TRACE] 13:03:01.017 terminal.go:TemplateCache() - 0s
[DEBUG] 13:03:01.018 text.go:Render:79 → rendering template:  
[TRACE] 13:03:01.018 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.018 text.go:Render:79 → rendering template:   {{ .Path }}
[TRACE] 13:03:01.018 terminal.go:Flags() - 0s
[TRACE] 13:03:01.018 terminal.go:TemplateCache() - 0s
[TRACE] 13:03:01.018 terminal.go:Shell() - 0s
[DEBUG] 13:03:01.018 text.go:Render:79 → rendering template: diamond
[TRACE] 13:03:01.018 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.018 text.go:Render:79 → rendering template: {{ if gt .Code 0 }}#ef5350{{ end }}
[TRACE] 13:03:01.018 terminal.go:Flags() - 0s
[TRACE] 13:03:01.018 terminal.go:TemplateCache() - 0s
[DEBUG] 13:03:01.018 text.go:Render:79 → rendering template: plain
[TRACE] 13:03:01.018 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.018 text.go:Render:79 → rendering template: {{ if gt .Code 0 }}#ef5350{{ end }}
[TRACE] 13:03:01.018 terminal.go:Flags() - 0s
[TRACE] 13:03:01.019 terminal.go:TemplateCache() - 0s
[TRACE] 13:03:01.019 terminal.go:Shell() - 0s
[TRACE] 13:03:01.019 terminal.go:Shell() - 0s
[TRACE] 13:03:01.019 terminal.go:Flags() - 0s
[DEBUG] 13:03:01.019 text.go:Render:79 → rendering template: {{ .Folder }}
[TRACE] 13:03:01.019 terminal.go:Flags() - 0s
[TRACE] 13:03:01.019 terminal.go:TemplateCache() - 0s
[TRACE] 13:03:01.019 terminal.go:Shell() - 0s
[DEBUG] 13:03:01.019 terminal.go:Getenv:171 → C:\Users\RAP\AppData\Local
[TRACE] 13:03:01.019 terminal.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 13:03:01.019 terminal_windows.go:CachePath() - 0s
[TRACE] 13:03:01.019 terminal.go:Flags() - 0s
JanDeDobbeleer commented 3 months ago

@rohit-serri highly likely Defender blocking the execution. You can use oh-my-posh init --debug to see where oh-my-posh takes time.