Settings up a developer’s env on windows is complicated, so I’m leaving this memo to remind myself of what to do when my windows ENV got crushed or reset.

Install NodeJS

Install nodejs using installer from nodejs.org.

Why it should be done first is that the nodejs installer bundles chocolatey, python and other windows build tools

Install Windows Terminal

Install Windows Terminal from Microsoft Store, so it can be updated automatically.

Config Chocolatey Proxy

1
choco config set proxy <PROXY_URL>

Install Everything Else from Chocolatey

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
choco install -y `
7zip `
bandizip `
fontbase `
git `
nerdfont-hack `
powershell-core `
starship `
telegram `
vim `
vscode `
vlc `
potplayer `
postman `
jetbrainstoolbox `
foobar2000 `
mkvtoolnix `
flac `
picard `
crystaldiskmark `
crystaldiskinfo `
aida64-extreme `
rufus `
freedownloadmanager `

Font

Hack Nerd Mono

Should be installed in previews step.

Windows Terminal Themes

settings.json
1
2
3
4
5
6
7
8
{
"profiles": {
"defaults": {
"useAcrylic": true,
"acrylicOpacity": 0.7
}
}
}

PowerShell Setup

Edit the PowerShell profile

~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1

1
2
3
vim $PROFILE
# or
code $PROFILE

Enable Starship

1
2
# Enable Starship
Invoke-Expression (&starship init powershell)

Setup PSReadline for Autocompletion and Autosuggestion

PSReadline

1
2
3
4
5
6
7
8
9
10
# Shows navigable menu of all options when hitting Tab
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete

# Autocompletion for arrow keys
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward

# Autosuggestion, Press right arrow key to complete the suggestion
Set-PSReadlineOption -ShowToolTips
Set-PSReadlineOption -PredictionSource History

Apps from MicrosoftStore

Screenshot

Get Snipaste from Microsoft Store.

Explorer Extensions

Get QuickLook from Microsoft Store.