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