+<#\r
+.SYNOPSIS\r
+\r
+Setup EdTheDev's PowerShell Profile\r
+\r
+.NOTES\r
+\r
+#>\r
+\r
+\r
+# Setup my PowerShell Profile (on Windows)\r
+if(-Not(Test-Path -Path $profile)) {\r
+ New-Item -Path "$profile" -ItemType File\r
+}\r
+\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 += $sourceMeFile\r
+$sourceMeLine += '));invoke-expression $profileContents'\r
+\r
+$doneFlagFile = "./DONE.md"\r
+$doBootStrap = -Not (Test-Path -Path $doneFlagFile)\r
+\r
+$profileContents = Get-Content $profile \r
+if(! $profileContents -contains $sourceMeLine) {\r
+ Add-Content -Path $profile -Value $sourceMeLine\r
+}\r
+\r
+# Install profile for Windows Terminal\r
+# $destFile = "C:\Users\delaport\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\profiles.json"\r
+# if(-Not(Test-Path -Path $destFile)) {\r
+# Copy-Item -Path ./profiles.json -Destination $destFile\r
+# } else {\r
+# # Brute force ensure we update our git copy once in awhile.\r
+# Copy-Item -Path $destFile -Destination ./profiles.json\r
+#}\r