]> us-delaporte.pagekite.me Git - dotfiles.git/blob - bootstrap.ps1
Load the toybox.
[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 if($false) {
18 choco install docker-desktop
19 }
20
21 # Install Python3 and Pip
22
23 # Install Stub PowerShell Profile that sources the one from DotFiles
24
25 # Install profile for Windows Terminal
26 $destFile = "C:\Users\delaport\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\profiles.json"
27 if(-Not(Test-Path -Path $destFile)) {
28 Copy-Item -Path ./profiles.json -Destination $destFile
29 } else {
30 # Brute force ensure we update our git copy once in awhile.
31 Copy-Item -Path $destFile -Destination ./profiles.json
32 }
33
34 # Vault for secret management
35 # ... and really for coding better intergrations i.e. for RobotFramework
36 if($false) {
37 choco install consul
38 choco install vault
39 }
40
41 # OWASP ZAP for web application security scanning
42 if($false) {
43 choco install zap
44 }