-
-
Save SvitlanaShepitsena/0ef9c970c42eaf89b52b to your computer and use it in GitHub Desktop.
Windows 10 setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Boxstarter options | |
$Boxstarter.RebootOk=$true # Allow reboots? | |
$Boxstarter.NoPassword=$false # Is this a machine with no login password? | |
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot | |
Update-ExecutionPolicy Unrestricted | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtension -DisableShowProtectedOSFiles | |
Set-TaskbarOptions -Size Large -Lock -Dock Bottom | |
# Update Windows and reboot if necessary | |
Install-WindowsUpdate -AcceptEula -Full | |
if (Test-PendingReboot) { Invoke-Reboot } | |
#7Zip, putty, git | |
cinst 7zip | |
cinst putty | |
cinst git.commandline | |
[Environment]::SetEnvironmentVariable( "GIT_SSH", "plink.exe", [System.EnvironmentVariableTarget]::Machine ) | |
#nodejs npm | |
cinst nodejs | |
npm config set prefix C:\ProgramData\npm | |
npm install -g grunt-cli bower http-server gulp | |
[Environment]::SetEnvironmentVariable( "Path", $env:Path + ";$env:programdata\npm", [System.EnvironmentVariableTarget]::Machine ) | |
#Atom, Brackets, Sublime 3 | |
cinst atom | |
[Environment]::SetEnvironmentVariable( "Path", $env:Path + ";$env:LOCALAPPDATA\atom\bin", [System.EnvironmentVariableTarget]::Machine ) | |
apm install language-stylus powershell project-manager | |
cinst brackets | |
cinst sublimetext3 | |
New-Item -ItemType Directory -Path "$env:appdata\Sublime Text 3\Installed Packages" | |
New-Item -ItemType Directory -Path "$env:appdata\Sublime Text 3\Packages\User" | |
Invoke-WebRequest "https://sublime.wbond.net/Package%20Control.sublime-package" -OutFile "$env:appdata\Sublime Text 3\Installed Packages\Package Control.sublime-package" | |
Invoke-WebRequest "https://gist.githubusercontent.com/SvitlanaShepitsena/6b1c6a1590f277738860/raw/e4ba2f4875e76a145457dbe23458c5998434e505/installed-packages -OutFile "$env:appdata\Sublime Text 3\Packages\User\Package Control.sublime-settings" | |
Invoke-WebRequest "https://gist.githubusercontent.com/SvitlanaShepitsena/a03b0df03075c5e0a5f6/raw/12d067f637303a966dc6d94dd1482dc48154877a/sublime-settings -OutFile "$env:appdata\Sublime Text 3\Packages\User\Default (Windows).sublime-keymap" | |
#Skype | |
cinst skype | |
#Browsers | |
cinst google-chrome-x64 | |
cinst firefox | |
cinst opera | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Update-ExecutionPolicy RemoteSigned | |
choco install git.install | |
choco install 7zip.install | |
choco install Google-Chrome-x64 | |
choco install PowerShell | |
choco install gitextensions | |
choco install nodejs.install | |
# this is old and not maintained | |
#choco install typescript | |
#choco install atom | |
choco install -y VisualStudioCode | |
choco install sysinternals | |
choco install rdcman | |
cinst cyberduck | |
cinst flashplayerplugin | |
cinst gamebooster | |
cinst javaruntime | |
cinst jre8 | |
cinst mongodb | |
cinst paint.net | |
cinst reflect-free | |
cinst teamviewer | |
cinst windirstat | |
cinst winrar | |
cinst lastpass | |
cinst dropbox -y | |
cinst mongodb -y | |
###################################################### | |
# Install npm packages | |
###################################################### | |
Write-Host "Install NPM packages" | |
npm install -g npm gulp webpack nodemon babel | |
Write-Host | |
Add-Path "C:\MongoDB\bin" | |
git config --global mergetool.keepbackup false | |
git config --global alias.lol "log --graph --decorate --oneline --all" | |
git config --global alias.lo "log --graph --oneline" | |
git config --global alias.ci commit | |
git config --global alias.br branch | |
git config --global alias.co checkout | |
git config --global alias.st status | |
git config --global alias.mt mergetool | |
git config --global alias.dt difftool | |
git config --global alias.unstage "reset HEAD --" | |
git config --global alias.last "log -1 HEAD" | |
git config --global fetch.prune true | |
git config --global log.decorate short | |
git config --global log.abbrevcommit true | |
git config --global log.date relative | |
# Special settings for ProductPlan | |
git config --global core.autocrlf false | |
git config --global core.safecrlf false | |
git config --global push.default simple | |
git config --global core.preloadindex true | |
git config --global http.proxy http://seproxy.hm.com:8080 | |
git config --global core.longpaths true | |
git config --global credential.helper '!\"C:\Program Files (x86)\GitExtensions\GitCredentialWinStore\git-credential-winstore.exe\"' | |
# Taskbar pins | |
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Google\Chrome\Application\chrome.exe" | |
Install-ChocolateyPinnedTaskBarItem "$env:windir\explorer.exe" | |
Install-ChocolateyPinnedTaskBarItem "$env:windir\opera.exe" | |
Install-ChocolateyPinnedTaskBarItem "$env:windir\putty.exe" | |
cinst dropbox | |
cinst powershell | |
cinst vlc | |
cinst autohotkey | |
cinst adobereader | |
cinst WindowsLiveWriter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment