From 370cb46c54a23b097362668f093ca8346350e162 Mon Sep 17 00:00:00 2001 From: TheFlyingFool Date: Wed, 12 Jun 2024 20:21:57 -0500 Subject: [PATCH] Seperating functions --- setup.ps1 | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/setup.ps1 b/setup.ps1 index cd03d12..68aeec9 100644 --- a/setup.ps1 +++ b/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' )