-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup-misc.txt
76 lines (61 loc) · 1.89 KB
/
setup-misc.txt
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
$featurestodisable = @(`
"Printing-XPSServices-Features",`
"MediaPlayback",`
"WindowsMediaPlayer",`
"WorkFolders-Client"`
)
foreach ($feature in $featurestodisable) {`
Disable-WindowsOptionalFeature -FeatureName $feature -NoRestart -Online`
}
$featurestoenable = @(`
"Windows-Defender-Default-Definitions",`
"HypervisorPlatform",`
"VirtualMachinePlatform",`
"Microsoft-Windows-Subsystem-Linux",`
"Containers-DisposableClientVM",`
"Microsoft-Hyper-V-All",`
"Microsoft-Hyper-V",`
"Microsoft-Hyper-V-Management-PowerShell",`
"Microsoft-Hyper-V-Hypervisor",`
"Microsoft-Hyper-V-Services",`
"Microsoft-Hyper-V-Management-Clients",`
"Windows-Defender-ApplicationGuard",`
"Containers"`
)
foreach ($feature in $featurestoenable) {`
Enable-WindowsOptionalFeature -FeatureName $feature -All -NoRestart -Online`
}
wsl --install
wsl --update
$restart = Read-Host -Prompt "Restart System (y/n)?"
$restart -eq "y"
if ($restart -eq "y") { Restart-Computer }
$wingetapps = @(
"Microsoft.PowerToys"
"Microsoft.WindowsTerminalPreview"
"Microsoft.PowerShell.Preview"
"Microsoft.VisualStudioCode.Insiders"
"Microsoft.PowerShell"
"Docker.DockerDesktop"
"GitHub.cli"
"InSSIDer"
"Obsidian.Obsidian"
"Typora.Typora"
"7zip.7zip"
)
for each ($appid in $wingetapps) { winget install --id=$appid -e -h }
winget install --id=Git.Git -e -h --override "/GitAndUnixToolsOnPath /NoShellIntegration /NoGuiHereIntegration /WindowsTerminal"
git --version
gh --version
gpg --version
ssh --version
gh auth login
gh config set git_protocol https
gh repo clone jimbrig/jimsdots ~/.dotfiles
gh config set git_protocol ssh
Function Import-GPGKeys {
gpg --import "$env:OneDrive\Backup\Secrets\Keys\GPG\private-keys.asc"
gpg --import "$env:OneDrive\Backup\Secrets\Keys\GPG\public-keys.asc"
}
ssh -T git@github.com
pip install --upgrade lastversion radian mkdocs keep b2