Make OMP configuration platform independent
This commit is contained in:
parent
82192c3ff3
commit
26d683b4c5
1 changed files with 10 additions and 1 deletions
|
@ -34,7 +34,16 @@ 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;
|
||||
Set-Content $path (wsl cat $theme.source);
|
||||
|
||||
Set-Content $path (
|
||||
& {
|
||||
if ($IsWindows) {
|
||||
wsl cat $theme.source
|
||||
} else {
|
||||
cat $theme.source
|
||||
}
|
||||
});
|
||||
|
||||
$theme = [string] $path;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue