Skip to content

Instantly share code, notes, and snippets.

@Jickelsen
Last active August 31, 2018 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jickelsen/4c83dde3ce9bd25adb60ceb241993815 to your computer and use it in GitHub Desktop.
Save Jickelsen/4c83dde3ce9bd25adb60ceb241993815 to your computer and use it in GitHub Desktop.
######## Jickel's devboxstarter script ########
Update-ExecutionPolicy Unrestricted
###############################
#### Windows Configuration ####
###############################
# Configure Windows (Boxstarter.WinConfig cmdlets)
Set-WindowsExplorerOptions `
-EnableShowHiddenFilesFoldersDrives `
-EnableShowProtectedOSFiles `
-EnableShowFileExtensions `
# test for this (choco list --source windowsfeatures)
cinst -y Microsoft-Hyper-V-All -source windowsFeatures
##########################
#### Custom Functions ####
##########################
# Seed an associative array of all locally installed chocolatey packages
$_installed_packages = @{}
choco list --limitoutput --localonly | % {
$line = $_.split('|')
$_installed_packages[$line[0].ToLower()] = $line[1]
}
function _cinst {
param([string] $package)
if (!$_installed_packages[$package.ToLower()]) {
Write-Host "Installing: $package"
cinst -y "$package"
}
else {
Write-Host "Already installed: $package"
}
}
######################
#### dependencies ####
######################
## nothing right now
#########################
#### requires reboot ####
#########################
_cinst googlechrome -y
_cinst firefox
# _cinst visualstudio2017community
if (Test-PendingReboot) { Invoke-Reboot }
#######################
#### general utils ####
#######################
_cinst lastpass
_cinst filezilla
_cinst windirstat
_cinst sharpkeys
_cinst handbrake
_cinst paint.net
_cinst postman
_cinst autohotkey.install
if (Test-PendingReboot) { Invoke-Reboot }
###################
#### dev utils ####
###################
_cinst cmder
_cinst git --package-parameters='"/NoShellIntegration"'
_cinst git-credential-manager-for-windows
_cinst jdk8
if (Test-PendingReboot) { Invoke-Reboot }
##################
#### dev apps ####
##################
_cinst androidstudio
## includes SDK
_cinst vscode
_cinst nodejs
_cinst curl
_cinst wget
_cinst unity
_cinst unity-android
if (Test-PendingReboot) { Invoke-Reboot }
#################
#### cleanup ####
#################
# del C:\eula*.txt
# del C:\install.*
# del C:\vcredist.*
# del C:\vc_red.*
########################
#### other installs ####
########################
cinst -y --ignorechecksum spotify
_cinst mpc-hc
_cinst vlc
_cinst steam
_cinst slack
_cinst discord
if (Test-PendingReboot) { Invoke-Reboot }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment