4 Setup my Windows PowerShell environment.
10 Relies heavily on the Chocolatey package manager.
15 [Parameter(Mandatory=$true, HelpMessage="Install Development Tools")]
17 [Parameter(Mandatory=$true, HelpMessage="Install Modeling Tools")]
19 [Parameter(Mandatory=$true, HelpMessage="Install Vim")]
23 # Setup my PowerShell Profile (on Windows)
24 if(-Not(Test-Path -Path $profile)) {
25 New-Item -Path "$profile" -ItemType File
28 $sourceMeFile = "$pwd\Microsoft.PowerShell_profile.ps1"
29 $sourceMeLine = '$profileContents = [string]::join([environment]::newline, (get-content -path'
30 $sourceMeLine += $sourceMeFile
31 $sourceMeLine += '));invoke-expression $profileContents'
33 $doneFlagFile = "./DONE.md"
34 $doBootStrap = -Not (Test-Path -Path $doneFlagFile)
36 $profileContents = Get-Content $profile
37 if(! $profileContents -contains $sourceMeLine) {
38 Add-Content -Path $profile -Value $sourceMeLine
42 $testchoco = powershell choco -v
44 Write-Output "Seems Chocolatey is not installed, installing now..."
45 Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
48 # Install Python3 and Pip
50 # Install Stub PowerShell Profile that sources the one from DotFiles
52 # Install profile for Windows Terminal
53 $destFile = "C:\Users\delaport\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\profiles.json"
54 if(-Not(Test-Path -Path $destFile)) {
55 Copy-Item -Path ./profiles.json -Destination $destFile
57 # Brute force ensure we update our git copy once in awhile.
58 Copy-Item -Path $destFile -Destination ./profiles.json
61 # OWASP ZAP for web application security scanning
66 ## TODO: Can I set this via command line: chrome://flags/#enable-force-dark
70 New-Item -ItemType File -Path $doneFlagFile
73 # ArchiMate for enterprise modeling