]> apps.delaporte.us Git - dotfiles.git/blob - bootstrap.ps1
Cleanup verbs
[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 [switch]$fav_ps_modules
24 )
25
26 ## Always Install Chocolatey if missing
27 $testchoco = powershell choco -v
28 if(-not($testchoco)){
29 Write-Output "Seems Chocolatey is not installed, installing now..."
30 Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
31 }
32
33 # OWASP ZAP for web application security scanning
34 if($false) {
35 choco install zap
36 }
37
38 ## TODO: Can I set this via command line: chrome://flags/#enable-force-dark
39
40 if($doBootStrap) {
41 # DONE!
42 New-Item -ItemType File -Path $doneFlagFile
43 }
44
45 # ArchiMate for enterprise modeling
46 if($archi) {
47 choco install archi
48 }
49
50 # Install dev tools
51 if($dev_tools){
52 ./install/dev.ps1
53 }
54
55 if($vim){
56 ./install/vim.ps1
57 }
58
59 if($profile){
60 ./install/profile.ps1
61 }
62
63 if($fav_ps_modules) {
64 Write-Host "Reminder: Need to install these modules with admin escalation."
65 ./install/admin/favorite-ps-modules.ps1
66 }