From 30d84482ff211f5e296adfa5b1c4c754d066c011 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 27 Jul 2023 13:15:09 +0200 Subject: [PATCH] Execute Oh My Posh script in current context --- scripts/Windows/Config/Oh My Posh/Install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Config/Oh My Posh/Install.ps1 b/scripts/Windows/Config/Oh My Posh/Install.ps1 index 85691672..d1b54655 100644 --- a/scripts/Windows/Config/Oh My Posh/Install.ps1 +++ b/scripts/Windows/Config/Oh My Posh/Install.ps1 @@ -7,7 +7,7 @@ Write-Host "Configuring Oh My Posh!"; $createInvokation = { param($initializer) - return "& ([scriptblock]::Create(($initializer) -join `"``n`"))"; + return ". ([scriptblock]::Create(($initializer) -join `"``n`"))"; } $context.AddPowerShellProfileStatement(