]> us-delaporte.pagekite.me Git - dotfiles.git/blob - bootstrap.ps1
Recipe for adding exfat support on pi
[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 $doneFlagFile = "./DONE.md"
13 $doBootStrap = -Not (Test-Path -Path $doneFlagFile)
14
15 $profileContents = Get-Content $profile
16 if(! $profileContents -contains $sourceMeLine) {
17 Add-Content -Path $profile -Value $sourceMeLine
18 }
19
20 # TODO Install Chocolatey
21
22 # Install Python3 and Pip
23
24 # Install Stub PowerShell Profile that sources the one from DotFiles
25
26 # Install profile for Windows Terminal
27 $destFile = "C:\Users\delaport\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\profiles.json"
28 if(-Not(Test-Path -Path $destFile)) {
29 Copy-Item -Path ./profiles.json -Destination $destFile
30 } else {
31 # Brute force ensure we update our git copy once in awhile.
32 Copy-Item -Path $destFile -Destination ./profiles.json
33 }
34
35 # Vault for secret management
36 # ... and really for coding better intergrations i.e. for RobotFramework
37 if($false) {
38 choco install consul
39 choco install vault
40 }
41
42 # OWASP ZAP for web application security scanning
43 if($false) {
44 choco install zap
45 }
46
47 ## TODO: Can I set this via command line: chrome://flags/#enable-force-dark
48
49 if($doBootStrap) {
50 # DONE!
51 New-Item -ItemType File -Path $doneFlagFile
52 }
53
54 # ArchiMate for enterprise modeling
55 if($false) {
56 choco install archi
57 }
58
59 # Install dev tools
60 ./install/dev.ps1