Rename PowerShell config directory to conf.d
This commit is contained in:
parent
ce44de21d7
commit
96dff277e6
2 changed files with 3 additions and 3 deletions
|
@ -13,8 +13,8 @@ script:
|
||||||
# Profile Files
|
# Profile Files
|
||||||
$profileRoot = Split-Path -Parent $PROFILE;
|
$profileRoot = Split-Path -Parent $PROFILE;
|
||||||
$profilePaths = @(
|
$profilePaths = @(
|
||||||
"$profileRoot/profile.d/*.ps1",
|
"$profileRoot/conf.d/*.ps1",
|
||||||
"{{ if eq .OS "windows" }}$env:ProgramData{{ else }}/etc{{ end }}/powershell/profile.d/*.ps1"
|
"{{ if eq .OS "windows" }}$env:ProgramData{{ else }}/etc{{ end }}/powershell/conf.d/*.ps1"
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ($profilePath in $profilePaths) {
|
foreach ($profilePath in $profilePaths) {
|
||||||
|
|
|
@ -58,7 +58,7 @@ $null = New-Module {
|
||||||
$Overwrite = $true;
|
$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 {
|
$profiles | ForEach-Object {
|
||||||
|
|
Loading…
Reference in a new issue