From bf9757043a71060307dd7142cbd8083bb6cce25d 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 37a255a8..54cfdc03 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; }