Simplify powershell profile

This commit is contained in:
Manuel Thalmann 2024-03-20 23:15:51 +01:00
parent 2a8430e388
commit cdfbf46282

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) {