Enable ssh-agent
on windows by default
This commit is contained in:
parent
5e6e8aa4a3
commit
368ccbdf28
2 changed files with 9 additions and 1 deletions
4
scripts/Windows/Config/OpenSSH/Install.ps1
Normal file
4
scripts/Windows/Config/OpenSSH/Install.ps1
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/pwsh
|
||||
param($context)
|
||||
|
||||
Set-Service ssh-agent -StartupType AutomaticDelayedStart;
|
|
@ -12,7 +12,11 @@ function Invoke-WindowsInstallation([Context] $context)
|
|||
Update-WindowsInstallation $context;
|
||||
|
||||
if (-not $context.Get("InitialConfiguration")) {
|
||||
. "$PSScriptRoot/../Config/Explorer/Install.ps1" $context;
|
||||
$configPath = "$PSScriptRoot/../Config";
|
||||
|
||||
. "$configPath/Explorer/Install.ps1" $context;
|
||||
. "$configPath/OpenSSH/Install.ps1" $context;
|
||||
|
||||
$context.RemoveDesktopIcon("*Microsoft Edge*");
|
||||
$context.Set("InitialConfiguration", 1, "DWord");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue