Maybe this will work but at least people can read the stupid shit about git not working and know the fix.

master
Zed A. Shaw 10 months ago
parent d2e8ea667e
commit e94d35cc14
  1. 10
      base.ps1

@ -222,8 +222,6 @@ if(-not $isAdmin) {
$installs=@( $installs=@(
'Geany.Geany', 'Geany.Geany',
'Git.Git',
'Microsoft.Git',
'Genivia.ugrep', 'Genivia.ugrep',
'Microsoft.WindowsTerminal', 'Microsoft.WindowsTerminal',
'Kitware.CMake', 'Kitware.CMake',
@ -242,7 +240,13 @@ foreach($pkg in $installs) {
Start-Process -NoNewWindow -Wait winget -ArgumentList 'install',$pkg 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) { if(Test-Path -Path $winlibsPath) {
Write-Warning "#=========================================================#" Write-Warning "#=========================================================#"

Loading…
Cancel
Save