Photo - Roseanna Smith
Photo

Windows

Use a Package Manager

Use winget if you can!

Use Nushell

winget install Nushell.Nushell

Git

Git on Windows is a... 'special' flower.

winget install Git.Git

On big clones errors like this are common:

$ git clone --recurse-submodules -j16 git@github.com:boop/droop.git
Cloning into 'droop'...
remote: Enumerating objects: 2673758, done.
remote: Counting objects: 100% (49873/49873), done.
remote: Compressing objects: 100% (14594/14594), done.
fetch-pack: unexpected disconnect while reading sideband packetB/s
fatal: fetch-pack: invalid index-pack output

Pass --depth 1 to improve the chance it might succeed. Then:

git fetch --unshallow

WSL

The so-called Windows Subsystem for Linux.

Reset WSL2 Quickly

If you're getting Network Unreachable in WSL2 for some reason, try this:

sudo Disable-WindowsOptionalFeature -Online -FeatureName -NoRestart `
    $("VirtualMachinePlatform", "Microsoft-Windows-Subsystem-Linux")
sudo Enable-WindowsOptionalFeature -Online -FeatureName `
    $("VirtualMachinePlatform", "Microsoft-Windows-Subsystem-Linux")

Systemd in WSL2

It should 'just work' now, but sometimes you may need to set something in your wsl.conf:

# /etc/wsl.conf
[boot]
systemd=true
            231666f96329f6c37d7736c5c0be5d5634043289