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 "#=========================================================#"