scripts/start.ps1
2025-03-24 02:49:43 +03:00

32 lines
832 B
PowerShell

$ErrorActionPreference = 'Stop'
$homeServerIp = "192.168.1.106"
while ($true) {
Write-Host "1. SSH" -ForegroundColor Yellow
Write-Host "2. Configure Neovim" -ForegroundColor Yellow
$input_secured = Read-Host "Select (def. 1)" -AsSecureString
$input = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($input_secured))
Write-Host
switch ($input) {
1 {
ssh exide@$homeServerIp -p 60022;
break;
}
2 {
winget install Git.Git
winget install Neovim.Neovim
git clone https://git.exideprod.com/Exide/LazyVim-custom.git $env:LOCALAPPDATA\nvim
break;
}
default {
Write-Host "Unknown option"
}
}
pause
Write-Host
}