Seperating functions
This commit is contained in:
parent
e9c94b32bb
commit
370cb46c54
26
setup.ps1
26
setup.ps1
@ -96,6 +96,8 @@ do {
|
||||
Write-Host '3 - Desktop only'
|
||||
Write-Host '4 - Lenovo Laptop only'
|
||||
Write-Host '5 - Remove Crap'
|
||||
Write-Host '6 - Create SSH Key'
|
||||
Write-Host '7 - Grab WinDot'
|
||||
Write-Host '9 - Exit'
|
||||
Write-Host ''
|
||||
$answer = Read-Host 'Select number(s)'
|
||||
@ -150,16 +152,9 @@ do {
|
||||
# Update-Profile # With moving profile and alias to git this is no longer the way
|
||||
|
||||
# In theory this will grab my dot files and start using them
|
||||
Get-Windot
|
||||
|
||||
Write-Host "Make sure SSH Client is installed"
|
||||
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
|
||||
Write-Host "Create SSH Key"
|
||||
ssh-keygen -t ed25519
|
||||
Write-Host "Start SSH Agent"
|
||||
Get-Service ssh-agent | Set-Service -StartupType Automatic
|
||||
Start-Service ssh-agent
|
||||
ssh-add $env:USERPROFILE\.ssh\id_ed25519
|
||||
|
||||
|
||||
|
||||
}
|
||||
"2" {
|
||||
@ -203,5 +198,18 @@ do {
|
||||
}
|
||||
winget uninstall onedrive
|
||||
}
|
||||
'6'{
|
||||
Write-Host "Make sure SSH Client is installed"
|
||||
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
|
||||
Write-Host "Create SSH Key"
|
||||
ssh-keygen -t ed25519
|
||||
Write-Host "Start SSH Agent"
|
||||
Get-Service ssh-agent | Set-Service -StartupType Automatic
|
||||
Start-Service ssh-agent
|
||||
ssh-add $env:USERPROFILE\.ssh\id_ed25519
|
||||
}
|
||||
'7'{
|
||||
Get-Windot
|
||||
}
|
||||
}
|
||||
} until ( $answer -eq '9' )
|
||||
|
Loading…
Reference in New Issue
Block a user