We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15e2082 commit 22745d4Copy full SHA for 22745d4
1 file changed
Microsoft.PowerShell_profile.ps1
@@ -2451,6 +2451,8 @@ if ($isInteractive) {
2451
}
2452
2453
if ($localThemePath -and (Test-Path $localThemePath)) {
2454
+ # Ensure OMP always uses our theme, even if its internal cache is invalidated
2455
+ $env:POSH_THEME = $localThemePath
2456
# Cache the OMP init script so we don't shell out every startup
2457
# Header tracks both OMP version AND theme path so a theme switch invalidates the cache.
2458
# PERF: Defer `oh-my-posh version` (~2-3s) until we know the cache is missing/stale.
0 commit comments