$ENV:PATH +=":/home/delaport/development/flutter/bin" # Flutter in Kali under WSL
# Some Paths that are annoying to find/restore if the installer fails
-$IsWindows = ($env:OS -eq "Windows_NT")
+if($IsWindows -eq "") {
+ # Bootstrap for older PowerShell
+ $IsWindows = ($env:OS -eq "Windows_NT")
+}
if($IsWindows){
$ENV:PATH+=";C:\Program Files\Microsoft VS Code\bin" # One Editor to rule them all
$ENV:PATH+=";C:\Program Files\Python38\Scripts\;C:\Program Files\Python38\" # Python latest as of 2019 December
\r
# Install Stub PowerShell Profile that sources the one from DotFiles\r
$sourceMeFile = "$pwd\Microsoft.PowerShell_profile.ps1"\r
-$sourceMeLine = '$profileContents = [string]::join([environment]::newline, (get-content -path'\r
+$sourceMeLine = '$profileContents = [string]::join([environment]::newline, (get-content -path '\r
$sourceMeLine += $sourceMeFile\r
$sourceMeLine += '));invoke-expression $profileContents'\r
\r