]> us-delaporte.pagekite.me Git - dotfiles.git/blob - bootstrap.ps1
b96584f5e10a58f211822ebf91e8fa729352a3cf
[dotfiles.git] / bootstrap.ps1
1 <#
2 .SYNOPSIS
3
4 Setup my Windows PowerShell environment.
5
6 .DESCRIPTION
7
8 .NOTES
9
10 Relies heavily on the Chocolatey package manager.
11
12 #>
13
14 param(
15 # [Parameter(Mandatory=$true, HelpMessage="Install Development Tools")]
16 [switch]$dev_tools,
17 # [Parameter(Mandatory=$true, HelpMessage="Install Modeling Tools")]
18 [switch]$archi,
19 # [Parameter(Mandatory=$true, HelpMessage="Install Vim")]
20 [switch]$vim,
21 # [Parameter(Mandatory=$true, HelpMessage="Setup PowerShell Profile")]
22 [switch]$profile
23 )
24
25 ## Always Install Chocolatey if missing
26 $testchoco = powershell choco -v
27 if(-not($testchoco)){
28 Write-Output "Seems Chocolatey is not installed, installing now..."
29 Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
30 }
31
32 # OWASP ZAP for web application security scanning
33 if($false) {
34 choco install zap
35 }
36
37 ## TODO: Can I set this via command line: chrome://flags/#enable-force-dark
38
39 if($doBootStrap) {
40 # DONE!
41 New-Item -ItemType File -Path $doneFlagFile
42 }
43
44 # ArchiMate for enterprise modeling
45 if($archi) {
46 choco install archi
47 }
48
49 # Install dev tools
50 if($dev_tools){
51 ./install/dev.ps1
52 }
53
54 if($vim){
55 ./install/vim.ps1
56 }
57
58 if($profile){
59 ./install/profile.ps1
60 }