This is how I set up my system.
I use the winget
and choco
package managers. I use VS Code as my preferred code editor.
I install several Python versions and manage them by using Python Launcher.
Install git and clone this repo:
winget install --id Git.Git -s winget
git clone https://github.com/mortenengen/mysetup
cd mysetup
Install Python:
winget install python.python.3.12
Create virtual environment and install mysetup CLI:
py -m venv venv
venv\scripts\activate
py -m pip install -e ..\mysetup
Python releases:
mys py
Basic packages from winget:
mys wgb
Other packages from winget:
mys wga
Install chocolatey:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Packages from chocolatey:
mys ch
Install font for oh-my-posh:
sudo oh-my-posh font install comicshannsmono
Open Windows Terminal and edit settings.json
by pressing ctrl+shift+,
. Add profiles.defaults.font.face: "ComicShannsMono Nerd Font"
. Restart terminal.
Edit the profile script:
code $PROFILE
Add the following lines
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\space.omp.json" | Invoke-Expression
$env:VIRTUAL_ENV_DISABLE_PROMPT=1
Reload the profile script:
. $PROFILE
Install VS Code Extensions:
foreach($line in get-content vscodeextensions.txt) {code --install-extension $($line)}
Open VS Code and select the preferred color theme by pressing ctrl+k ctrl+t
.
Install VS Code Extension Manager
npm install -g vsce