From e94d35cc142a0a52ecda6fef17dac84100a81e0d Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Mon, 23 Dec 2024 10:32:56 -0500 Subject: [PATCH] Maybe this will work but at least people can read the stupid shit about git not working and know the fix. --- base.ps1 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/base.ps1 b/base.ps1 index cb8488f..7e1e7a0 100644 --- a/base.ps1 +++ b/base.ps1 @@ -222,8 +222,6 @@ if(-not $isAdmin) { $installs=@( 'Geany.Geany', - 'Git.Git', - 'Microsoft.Git', 'Genivia.ugrep', 'Microsoft.WindowsTerminal', 'Kitware.CMake', @@ -242,7 +240,13 @@ foreach($pkg in $installs) { Start-Process -NoNewWindow -Wait winget -ArgumentList 'install',$pkg } -$winlibsPath = "$env:APPDATA\WinLibs" +Write-Warning "!!!!!! GIT GIT GIT !!!!!" +Write-Warning "As of December 2024, my tests showed that git is not added to the path when you install it. I know, shocker right? I will attempt to install it interactively here. But if you cannot type 'git' in Terminal after you restart terminal then you will need to run: winget install git" +Read-Host -Prompt "Press any key to say you read the above" | Out-Null + +winget install -i Git.Git + +$winlibsPath = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("$env:APPDATA\..\Local\Programs\WinLibs") if(Test-Path -Path $winlibsPath) { Write-Warning "#=========================================================#"