Simplify powershell
profile
This commit is contained in:
parent
2a8430e388
commit
cdfbf46282
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ script:
|
||||||
$profileRoot = Split-Path -Parent $PROFILE;
|
$profileRoot = Split-Path -Parent $PROFILE;
|
||||||
$profilePaths = @(
|
$profilePaths = @(
|
||||||
"$profileRoot/profile.d/*.ps1",
|
"$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) {
|
foreach ($profilePath in $profilePaths) {
|
||||||
|
|
Loading…
Reference in a new issue