Load theme file from WSL properly

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

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