forked from jayharris/dotfiles-windows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeps.ps1
130 lines (113 loc) · 4.43 KB
/
deps.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Update Help for Modules
Update-Help -Force
### Package Providers
Get-PackageProvider NuGet -Force
# Chocolatey Provider is not ready yet. Use normal Chocolatey
#Get-PackageProvider Chocolatey -Force
#Set-PackageSource -Name chocolatey -Trusted
### Chocolatey
if ((which cinst) -eq $null) {
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
Refresh-Environment
choco feature enable -n=allowGlobalConfirmation
}
# system and cli
cinst Gow
cinst nuget.commandline
cinst webpi
cinst wput
# browsers
cinst GoogleChrome
cinst Firefox
# dev tools and frameworks
cinst atom
cinst GitHubForWindows
cinst Fiddler4
cinst nodejs.install
cinst ruby
cinst vim
cinst winmerge
cinst elixir
cinst 7zip
cinst vlc
cinst jdk8
cinst thunderbird
cinst git.install
cinst cmder -pre
cinst poshgit
cinst ruby
cinst ruby.devkit
cinst python
cinst pip
cinst easy.install
cinst 7zip.install
cinst sysinternals
cinst DotNet3.5
# other
#cinst wincommandpaste # Copy/Paste is supported natively in Win10
### Completing PoshGit installation if installing GH4W
if (((choco list -lr | where {$_ -like "githubforwindows*"}) -ne $null) -and ((which git) -eq $null)) {
Write-Host ""
Write-Host "You have installed GitHubForWindows but `git` was not found."
Write-Host "In case GitHubForWindows is newly installed, execution has been"
Write-Host "paused while you complete the installation."
Write-Host ""
Read-Host -Prompt "When (or if) installation has completed, press Enter to continue" | Out-Null
Push-Location (Join-Path $env:LocalAppData "GitHub")
Write-Host ""
Write-Host "Relaunching GitHubForWindows to begin tooling installation."
Write-Host "You will be prompted for your GitHub credentials, though feel free to Skip."
Write-Host "A notification for Extracting Tools may display."
Start-Process .\GitHub.appref-ms
Read-Host -Prompt "Once GH4W displays the Repositories screen, press Enter to proceed." | Out-Null
Write-Host ""
Write-Host "Launching GitHubForWindows Shell to complete tooling installation."
Start-Process .\GitHub.appref-ms -ArgumentList "--open-shell"
Read-Host -Prompt "After launching, close the GH4W shell and press Enter to proceed" | Out-Null
Refresh-Environment
. (Join-Path (Split-Path -parent $PROFILE) "profile.ps1")
Pop-Location
} else {
Refresh-Environment
}
### Web Platform Installer
if (which webpicmd) {
webpicmd /Install /AcceptEula /Products:"StaticContent,DefaultDocument,DirectoryBrowse,RequestFiltering,HTTPErrors,HTTPLogging,ISAPIExtensions,ISAPIFilters,UrlRewrite2"
webpicmd /Install /AcceptEula /Products:"BasicAuthentication,WindowsAuthentication"
webpicmd /Install /AcceptEula /Products:"StaticContentCompression,DynamicContentCompression"
webpicmd /Install /AcceptEula /Products:"IISManagementConsole"
webpicmd /Install /AcceptEula /Products:"WebSockets"
webpicmd /Install /AcceptEula /Products:"NetFx3,NetFx4,NETFramework452,NetFx4Extended-ASPNET45,NETExtensibility,NetFxExtensibility45,ASPNET,ASPNET45"
webpicmd /Install /AcceptEula /Products:"Python279"
}
### Node Packages
if (which npm) {
npm install -g babel-cli
npm install -g bower
npm install -g conventional-changelog
npm install -g mocha
npm install -g node-inspector
npm install -g node-sass
npm install -g yo
npm install -g xo
npm install -g brunch
}
### Janus for vim
if ((which vim) -and (which rake)) {
curl.exe -L https://bit.ly/janus-bootstrap | bash
}
### Visual Studio Plugins
if (which Install-VSExtension) {
### Visual Studio 2015
# VsVim
Install-VSExtension https://visualstudiogallery.msdn.microsoft.com/59ca71b3-a4a3-46ca-8fe1-0e90e3f79329/file/6390/57/VsVim.vsix
# Productivity Power Tools 2015
Install-VSExtension https://visualstudiogallery.msdn.microsoft.com/34ebc6a2-2777-421d-8914-e29c1dfa7f5d/file/169971/1/ProPowerTools.vsix
### Visual Studio 2013
# VsVim
# Install-VSExtension https://visualstudiogallery.msdn.microsoft.com/59ca71b3-a4a3-46ca-8fe1-0e90e3f79329/file/6390/57/VsVim.vsix
# Productivity Power Tools 2013
# Install-VSExtension https://visualstudiogallery.msdn.microsoft.com/dbcb8670-889e-4a54-a226-a48a15e4cace/file/117115/4/ProPowerTools.vsix
# Web Essentials 2013
# Install-VSExtension https://visualstudiogallery.msdn.microsoft.com/56633663-6799-41d7-9df7-0f2a504ca361/file/105627/47/WebEssentials2013.vsix
}