Load theme file from WSL properly
This commit is contained in:
parent
b9b192c42a
commit
bf9757043a
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ Start-SoftwareInstaller @PSBoundParameters `
|
||||||
$root = "$($IsWindows ? $env:AppData : "~/.config")/oh-my-posh";
|
$root = "$($IsWindows ? $env:AppData : "~/.config")/oh-my-posh";
|
||||||
$path = Join-Path $root "$($theme.name).omp.json";
|
$path = Join-Path $root "$($theme.name).omp.json";
|
||||||
$null = New-Item -Force -ItemType Directory $root;
|
$null = New-Item -Force -ItemType Directory $root;
|
||||||
Copy-Item $theme.source $path;
|
Set-Content $path (wsl cat $theme.source);
|
||||||
$theme = [string] $path;
|
$theme = [string] $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue