Rename PowerShell config directory to conf.d

This commit is contained in:
Manuel Thalmann 2024-03-20 23:57:48 +01:00
parent 953a1127ac
commit 6a7b038157
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -58,7 +58,7 @@ $null = New-Module {
$Overwrite = $true;
}
$profiles = $profiles | ForEach-Object { Join-Path (Split-Path -Parent $_) "profile.d" "$Category.ps1"; };
$profiles = $profiles | ForEach-Object { Join-Path (Split-Path -Parent $_) "conf.d" "$Category.ps1"; };
}
$profiles | ForEach-Object {