Skip to content

Instantly share code, notes, and snippets.

@thde
Last active April 25, 2025 14:12
Show Gist options
  • Save thde/9391195a04954d48857f7b014592e3da to your computer and use it in GitHub Desktop.
Save thde/9391195a04954d48857f7b014592e3da to your computer and use it in GitHub Desktop.
Windows Bootstrap

Windows

winget upgrade --all
winget import --import-file "winget.json"

WSL

wsl --install --distribution Ubuntu
wsl --update
wsl --set-default Ubuntu
wsl -d Ubuntu-24.04 -u root bash -c '
  apt update && apt upgrade -y
'

Starship

# Configure PowerShell profile
if (!(Test-Path -Path $PROFILE)) {
  New-Item -ItemType File -Path $PROFILE -Force
}

# Add to PowerShell profile
Add-Content -Path $PROFILE -Value @"
Invoke-Expression (&starship init powershell)
"@
{
"$schema": "https://aka.ms/winget-packages.schema.1.0.json",
"WinGetVersion": "0.3.11201",
"Sources": [
{
"Packages": [
{ "Id": "Mozilla.Firefox" },
{ "Id": "Microsoft.WindowsTerminal" },
{ "Id": "WinDirStat.WinDirStat" },
{ "Id": "CPUID.CPU-Z" },
{ "Id": "TechPowerUp.GPU-Z" },
{ "Id": "LibreHardwareMonitor.LibreHardwareMonitor" },
{ "Id": "Maxon.CinebenchR23" },
{ "Id": "Intel.PresentMon" },
{ "Id": "Valve.Steam" },
{ "Id": "Ookla.Speedtest.Desktop" }
],
"SourceDetails": {
"Argument": "https://winget.azureedge.net/cache",
"Identifier": "Microsoft.Winget.Source_8wekyb3d8bbwe",
"Name": "winget",
"Type": "Microsoft.PreIndexed.Package"
}
}
]
}
{
"$schema": "https://aka.ms/winget-packages.schema.1.0.json",
"WinGetVersion": "0.3.11201",
"Sources": [
{
"Packages": [
{ "Id": "Mozilla.Firefox" },
{ "Id": "clsid2.mpc-hc" },
{ "Id": "AgileBits.1Password" },
{ "Id": "Klocman.BulkCrapUninstaller" },
{ "Id": "Microsoft.WindowsTerminal" },
{ "Id": "Spotify.Spotify" },
{ "Id": "Gyan.FFmpeg" },
{ "Id": "Starship.Starship" },
{ "Id": "JackieLiu.NotepadsApp" },
{ "Id": "FilesCommunity.Files" },
{ "Id": "DevToys-app.DevToys" },
{ "Id": "MartiCliment.UniGetUI" },
{ "Id": "M2Team.NanaZip" },
{ "Id": "WinSCP.WinSCP" },
{ "Id": "Tailscale.Tailscale" },
{ "Id": "dotPDN.PaintDotNet" },
{ "Id": "Microsoft.PowerToys" },
{ "Id": "WinDirStat.WinDirStat" },
{ "Id": "LibreHardwareMonitor.LibreHardwareMonitor" },
{ "Id": "Apple.iTunes" },
{ "Id": "Valve.Steam" },
{ "Id": "Microsoft.PowerShell" },
{ "Id": "Microsoft.WSL" },
{ "Id": "Ookla.Speedtest.Desktop" }
],
"SourceDetails": {
"Argument": "https://winget.azureedge.net/cache",
"Identifier": "Microsoft.Winget.Source_8wekyb3d8bbwe",
"Name": "winget",
"Type": "Microsoft.PreIndexed.Package"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment