Execute Oh My Posh script in current context

This commit is contained in:
Manuel Thalmann 2023-07-27 13:15:09 +02:00
parent d4e2b633d5
commit 30d84482ff

View file

@ -7,7 +7,7 @@ Write-Host "Configuring Oh My Posh!";
$createInvokation = { $createInvokation = {
param($initializer) param($initializer)
return "& ([scriptblock]::Create(($initializer) -join `"``n`"))"; return ". ([scriptblock]::Create(($initializer) -join `"``n`"))";
} }
$context.AddPowerShellProfileStatement( $context.AddPowerShellProfileStatement(