From c69019b63ce601fa6ecb27659cb0cbb6eaa889ef Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 24 Aug 2024 00:59:59 +0200 Subject: [PATCH] Load theme file from WSL properly --- scripts/Common/Software/Oh My Posh/Manage.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Common/Software/Oh My Posh/Manage.ps1 b/scripts/Common/Software/Oh My Posh/Manage.ps1 index f22e2406..131cd4e2 100644 --- a/scripts/Common/Software/Oh My Posh/Manage.ps1 +++ b/scripts/Common/Software/Oh My Posh/Manage.ps1 @@ -34,7 +34,7 @@ Start-SoftwareInstaller @PSBoundParameters ` $root = "$($IsWindows ? $env:AppData : "~/.config")/oh-my-posh"; $path = Join-Path $root "$($theme.name).omp.json"; $null = New-Item -Force -ItemType Directory $root; - Copy-Item $theme.source $path; + Set-Content $path (wsl cat $theme.source); $theme = [string] $path; }