Add ability to load PowerShell profile files
This commit is contained in:
parent
ada9df8e20
commit
b44c8833b5
2 changed files with 9 additions and 0 deletions
8
scripts/Windows/Config/PowerShell/Install.ps1
Normal file
8
scripts/Windows/Config/PowerShell/Install.ps1
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/pwsh
|
||||
param($context)
|
||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||
|
||||
Write-Host "Configuring PowerShell";
|
||||
Write-Information "Allow addition of any number of profile files";
|
||||
[Context] $context = $context;
|
||||
$context.AddPowerShellProfileStatement('. "$PSScriptRoot/profile.d/*.ps1";');
|
|
@ -18,6 +18,7 @@ function Invoke-WindowsInstallation([Context] $context)
|
|||
. "$configPath/Explorer/Install.ps1" $context;
|
||||
. "$configPath/OpenSSH/Install.ps1" $context;
|
||||
. "$configPath/chocolatey/Install.ps1";
|
||||
. "$configPath/PowerShell/Install.ps1" $context;
|
||||
|
||||
$context.RemoveDesktopIcon("*Microsoft Edge*");
|
||||
$context.Set("InitialConfiguration", 1, "DWord");
|
||||
|
|
Loading…
Reference in a new issue