-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.ps1
32 lines (24 loc) · 979 Bytes
/
install.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
#Requires -RunAsAdministrator
Set-StrictMode -Version Latest
Set-ExecutionPolicy RemoteSigned
# Install Chocolatey
if (-Not (Get-Command choco -errorAction SilentlyContinue)) {
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
}
choco install -y git pwsh gsudo neovide zulip microsoft-windows-terminal alacritty element-desktop greenshot firacode fzf poshgit xmouse-controls wezterm firefox gh signal
# TODO: accept prompts, but don't update unless necessary
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
Install-Module PSReadLine
Install-Module PsFzf
Install-Module posh-git
# Don't beep at me
set-service beep -startuptype disabled
# Install WSL
$wsl_info = wsl -l -v
if ($?) {
echo "WSL is already installed."
}
else {
wsl --install
}
& "$PSScriptRoot\installConfig.ps1"