Skip to content

Commit bdd2fe9

Browse files
committed
Update some windows things
1 parent 9afd92a commit bdd2fe9

2 files changed

Lines changed: 39 additions & 2 deletions

File tree

content/codex/development/environments/windows/_index.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,23 @@ source = "https://unsplash.com/photos/-qzLjuJEmsE"
1717

1818
<!-- more -->
1919

20+
# Get `sudo`
21+
22+
You can get [`sudo` working via the "Use Developer Features"](https://learn.microsoft.com/en-us/windows/advanced-settings/sudo/) hook in the Start Menu. Look for a shield called "Enable Sudo".
23+
24+
It's... just okay.
25+
2026
# Use a Package Manager
2127

2228
Use `winget` if you can!
2329

24-
# Use Nushell
30+
## Use Nushell
2531

2632
```powershell
2733
winget install Nushell.Nushell
2834
```
2935

30-
# Git
36+
## Git
3137

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

content/codex/development/environments/windows/wsl/_index.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,35 @@ It should ['just work'](https://devblogs.microsoft.com/commandline/systemd-suppo
3434
# /etc/wsl.conf
3535
[boot]
3636
systemd=true
37+
```
38+
39+
# Import WSL2 disks in place
40+
41+
You can just import random `vhdx` disks you have with:
42+
43+
```shell
44+
wsl --import-in-place ubuntu ext4.vhdx
45+
```
46+
47+
You don't need to export them or anything, just getting the `vhdx` is enough.
48+
49+
You can put them generally anywhere, even some random dev drive.
50+
51+
# Sparse WSL2 disks
52+
53+
You can make your WSL2 disks sparse now, saving disk space.
54+
55+
To make a distro sparse:
56+
57+
```shell
58+
wsl --manage $DISTRO $ --set-sparse true
59+
```
60+
61+
Also:
62+
63+
```toml
64+
# ~/.wslconfig
65+
66+
[experimental]
67+
sparseVhd=true
3768
```

0 commit comments

Comments
 (0)