Simplify powershell profile

This commit is contained in:
Manuel Thalmann 2024-03-20 23:15:51 +01:00
parent aab530444d
commit 5cdc395cef

View file

@ -14,7 +14,7 @@ script:
$profileRoot = Split-Path -Parent $PROFILE;
$profilePaths = @(
"$profileRoot/profile.d/*.ps1",
"{{ if eq .OS "windows" }}C:/ProgramData{{ else }}/etc{{ end }}/powershell/profile.d"
"{{ if eq .OS "windows" }}$env:ProgramData{{ else }}/etc{{ end }}/powershell/profile.d"
);
foreach ($profilePath in $profilePaths) {