]> apps.delaporte.us Git - dotfiles.git/commitdiff
Profile bugfixes.
authorEdTheDev <edward@delaporte.us>
Fri, 29 Jan 2021 15:37:49 +0000 (09:37 -0600)
committerEdTheDev <edward@delaporte.us>
Fri, 29 Jan 2021 15:37:49 +0000 (09:37 -0600)
Microsoft.PowerShell_profile.ps1
install/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
index d2d16b45c0692f3c4b090ed4f5fc7cbc59adbe03..22be8ac4163479724e17f0e5f55374c45be42a83 100644 (file)
@@ -14,7 +14,7 @@ if(-Not(Test-Path -Path $profile)) {
 \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