]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
There are a few of my favorite PowerShell modules
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index e0c2494cff86d3ff19180b9abde1fbcec9d12bf6..64fd37c591215eb14947f7044e086567bab63256 100644 (file)
@@ -16,7 +16,10 @@ $env:PSModulePath = $env:PSModulePath.Replace("\\ad.uillinois.edu\techsvc\home\$
 $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