# Path to Flutter
-$ENV:PATH +=":/home/delaport/development/flutter/bin" # Kali under WSL
\ No newline at end of file
+$ENV:PATH +=":/home/delaport/development/flutter/bin" # Kali under WSL
+
+# Some Paths that are annoying to find/restore if the installer fails
+$ENV:PATH+=";C:\Program Files\Python38\Scripts\;C:\Program Files\Python38\"
+$ENV:PATH+=";C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Docker\Docker\Resources\bin"
+$ENV:PATH+=";C:\Program Files (x86)\Common Files\Oracle\Java\javapath"
+$ENV:PATH+=";C:\Program Files\Microsoft VS Code\bin"
+$ENV:PATH+=";C:\Program Files\Git\cmd"
+$ENV:PATH+=";C:\ProgramData\chocolatey\bin"
+$ENV:PATH+=";C:\PENGUIN" # Flag to ensure my profile kicked in.
\ No newline at end of file
if(-Not(Test-Path -Path $profile)) {
New-Item -Path "$profile" -ItemType File
}
-$sourceMeLine = "source $pwd/Microsoft.PowerShell_profile.ps1"
+$sourceMeFile = "$pwd\Microsoft.PowerShell_profile.ps1"
+$sourceMeLine = '$profileContents = [string]::join([environment]::newline, (get-content -path'
+$sourceMeLine += $sourceMeFile
+$sourceMeLine += '));invoke-expression $profileContents'
+
+Write-Host $sourceMeLine
+
$profileContents = Get-Content $profile
if(! $profileContents -contains $sourceMeLine) {
Add-Content -Path $profile -Value $sourceMeLine