-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows-setup.ps1
52 lines (38 loc) · 1.51 KB
/
windows-setup.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
Set-ExecutionPolicy RemoteSigned
# Create a dev drive: https://learn.microsoft.com/en-us/windows/dev-drive/
# Install winget: https://apps.microsoft.com/detail/9NBLGGH4NNS1
# Install Chocolatey: https://chocolatey.org/install#individual
# Change default terminal
# https://community.chocolatey.org/packages
# Set dev file locations to dev box
# https://learn.microsoft.com/en-us/windows/dev-drive/#storing-package-cache-on-dev-drive
setx /M YARN_GLOBAL_FOLDER D:\.yarn
setx /M YARN_CACHE_FOLDER D:\.yarn\cache
setx /M npm_config_cache D:\.npm\cache
# # Settings
# Performance Options -> Fade or slide menu's into view
# Keyboard -> Cursor blink rate -> None
# Update VsCode powershell profile
$myProfile=@'
function prompt {
$p = Split-Path -leaf -path (Get-Location)
"$p $ "
}
'@
New-Item -path $profile -type file -force -Value $myProfile
winget install "1Password - Password Manager"
choco install googlechrome
choco install nvm
winget install vscode
choco install git
choco install 7zip
New-Item $home -Name "workspace" -ItemType "directory"
Add-MpPreference -ExclusionPath "$($home)\workspace"
git config --global users.name "Maxwell Burson"
git config --global user.email [email protected]
git config --global core.editor "code"
refreshenv
# Install Berkly Mono TTF
# Open powershell profile: `code $profile.CurrentUserCurrentHost`
# Copy windows terminal settings
Copy-Item -Path ./windows-terminal.json -Destination %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json