Skip to content

Instantly share code, notes, and snippets.

@gitolicious
Last active August 27, 2021 09:25
Show Gist options
  • Save gitolicious/92d95c91731fd98cce807370b0f2ffa0 to your computer and use it in GitHub Desktop.
Save gitolicious/92d95c91731fd98cce807370b0f2ffa0 to your computer and use it in GitHub Desktop.
Windows bootstrap

WSL

from docs.microsoft.com

(to be replaced by wsl --install starting Win10 20262)

powershell 
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

reboot machine

download and install Linux Kernel

wsl --set-default-version 2

zsh

from gitolicious/dotfiles

bash -c "$(curl -fsSL https://raw.githubusercontent.com/gitolicious/dotfiles/master/bin/bootstrap.sh)"

scoop

powershell

from scoop/issues/249

$env:SCOOP="C:\scoop"

scoop core

from scoop.sh

iwr -useb get.scoop.sh | iex

buckets

scoop install git
scoop bucket add extras
scoop bucket add nonportable
scoop bucket add nerd-fonts

from lukesampson/scoop

scoop bucket add scoopy-doo https://github.com/gitolicious/scoopy-doo

the necessities

scoop install sudo chromium vscode windows-terminal

scoop completion

from Moeologist/scoop-completion

scoop bucket add scoop-completion https://github.com/Moeologist/scoop-completion
scoop install scoop-completion
Add-Content $PROFILE 'Import-Module "$($(Get-Item $(Get-Command scoop).Path).Directory.Parent.FullName)\modules\scoop-completion"'
. $PROFILE

fonts

sudo scoop install RobotoMono-NF@1.2.0
sudo scoop install CascadiaCode-NF

set command line default to RobotoMono, 16px set IDE default to CaskaydiaCove NF

IntelliJ

coming soon

VSCode

from medium.com/@chemidy

{
    "editor.fontFamily": "CaskaydiaCove NF, monospace",
    "editor.fontLigatures": true
}

Oh my posh

scoop install https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/oh-my-posh.json
if (!(Test-Path $env:USERPROFILE\.oh-my-posh)) {New-Item -Path $env:USERPROFILE -Name ".oh-my-posh" -ItemType "directory"}
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/gitolicious/dotfiles/main/.oh-my-posh/themes/custom.omp.json" -OutFile "$env:USERPROFILE\.oh-my-posh\custom.omp.json"
if (!(Test-Path $PROFILE)) {New-Item -Path $PROFILE -ItemType "file" -Force}
Add-Content $PROFILE "Invoke-Expression (oh-my-posh --init --shell pwsh --config ~/.oh-my-posh/custom.omp.json)"
. $PROFILE

Cleanup

Cortana

disable web search

from bennetrichter.de

disable-websearch.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search]
"CortanaConsent"=dword:00000000
"BingSearchEnabled"=dword:00000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment