1 # Setup my PowerShell Profile (on Windows)
2 if(-Not(Test-Path -Path $profile)) {
3 New-Item -Path "$profile" -ItemType File
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'
10 # Write-Host $sourceMeLine
12 $doneFlagFile = "./DONE.md"
13 $doBootStrap = -Not (Test-Path -Path $doneFlagFile)
15 $profileContents = Get-Content $profile
16 if(! $profileContents -contains $sourceMeLine) {
17 Add-Content -Path $profile -Value $sourceMeLine
20 # TODO Install Chocolatey
23 choco install docker-desktop
28 gpg --full-generate-key
30 # Install Python3 and Pip
32 # Install Stub PowerShell Profile that sources the one from DotFiles
34 # Install profile for Windows Terminal
35 $destFile = "C:\Users\delaport\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\profiles.json"
36 if(-Not(Test-Path -Path $destFile)) {
37 Copy-Item -Path ./profiles.json -Destination $destFile
39 # Brute force ensure we update our git copy once in awhile.
40 Copy-Item -Path $destFile -Destination ./profiles.json
43 # Vault for secret management
44 # ... and really for coding better intergrations i.e. for RobotFramework
50 # OWASP ZAP for web application security scanning
55 # Install GNU Make for Windows
59 ## TODO: Can I set this via command line: chrome://flags/#enable-force-dark
63 New-Item -ItemType File -Path $doneFlagFile
66 # ArchiMate for enterprise modeling
72 choco install powershell-core