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
scripts/Windows/Config/PowerShell
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";');
|
Loading…
Add table
Add a link
Reference in a new issue