Load theme file from WSL properly

This commit is contained in:
Manuel Thalmann 2024-08-24 00:59:59 +02:00
parent b9b192c42a
commit bf9757043a

View file

@ -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;
}