]> apps.delaporte.us Git - dotfiles.git/blob - bootstrap.ps1
Let us answer 'why'
[dotfiles.git] / bootstrap.ps1
1 # Setup my PowerShell Profile (on Windows)
2 if(-Not(Test-Path -Path $profile)) {
3 New-Item -Path "$profile" -ItemType File
4 }
5 $sourceMeFile = "$pwd\Microsoft.PowerShell_profile.ps1"
6 $sourceMeLine = '$profileContents = [string]::join([environment]::newline, (get-content -path'
7 $sourceMeLine += $sourceMeFile
8 $sourceMeLine += '));invoke-expression $profileContents'
9
10 Write-Host $sourceMeLine
11
12 $profileContents = Get-Content $profile
13 if(! $profileContents -contains $sourceMeLine) {
14 Add-Content -Path $profile -Value $sourceMeLine
15 }
16 # Install Chocolatey
17
18 # Install Python3 and Pip
19
20 # Install Stub PowerShell Profile that sources the one from DotFiles
21