Make Oh-My-Posh theme location dynamic
This commit is contained in:
parent
4b09cd1f87
commit
90e876699d
1 changed files with 2 additions and 2 deletions
|
@ -48,10 +48,10 @@ Start-SoftwareInstaller @PSBoundParameters `
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($IsWindows) {
|
if ($IsWindows) {
|
||||||
[System.Environment]::SetEnvironmentVariable($varName, $path, "User");
|
[System.Environment]::SetEnvironmentVariable($varName, "%AppData%/$([System.IO.Path]::GetRelativePath($env:AppData, $path))", "User");
|
||||||
} else {
|
} else {
|
||||||
. "$PSScriptRoot/../aliae/Manage.ps1";
|
. "$PSScriptRoot/../aliae/Manage.ps1";
|
||||||
Add-EnvironmentVariable -User $Arguments.Name $varName $path;
|
Add-EnvironmentVariable -User $Arguments.Name $varName ($path).Replace("~", "{{ .Home }}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue