-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.ps1
More file actions
23 lines (18 loc) · 809 Bytes
/
setup.ps1
File metadata and controls
23 lines (18 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# ============================================================================
# Git Multi-SSH Setup Script for Windows (PowerShell)
# ============================================================================
Write-Host "`n🚀 Installing git-multi-ssh...`n" -ForegroundColor Green
$installDir = Join-Path $env:USERPROFILE ".git-multi-ssh"
if (Test-Path $installDir) {
Write-Host "🔄 Updating..." -ForegroundColor Yellow
Set-Location $installDir
& git pull
} else {
Write-Host "📦 Cloning..." -ForegroundColor Yellow
& git clone https://github.com/sahulkola/git-multi-ssh.git $installDir
Set-Location $installDir
}
Write-Host "Installing dependencies..." -ForegroundColor Yellow
& npm install
& npm link
Write-Host "`n✅ Done! Run: git-multi-ssh`n" -ForegroundColor Green