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 mysetupInstall Python:
winget install python.python.3.12Create virtual environment and install mysetup CLI:
py -m venv venv
venv\scripts\activate
py -m pip install -e ..\mysetupPython releases:
mys pyBasic packages from winget:
mys wgbOther packages from winget:
mys wgaInstall 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 chInstall font for oh-my-posh:
sudo oh-my-posh font install comicshannsmonoOpen 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=1Reload the profile script:
. $PROFILEInstall 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