From b8160b8cd4a87a7aeaa994e9bd7d4572a37263b7 Mon Sep 17 00:00:00 2001 From: 26zl <143036376+26zl@users.noreply.github.com> Date: Sat, 26 Sep 2026 14:10:09 +0200 Subject: [PATCH] wsl-comfort: point the closing message and readme at names that exist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Install-TerminalProfile creates the Windows Terminal profile as "Comfort Shell - " and prints that name in its summary, but the closing message told the user to open "Comfort Shell 😎 ()", which does not exist. The readme's caveats table said the NUL stripping for "wsl -l -q" lives in Get-WslSupportedDistros; the function is Get-InstalledWslDistros. --- src/wsl-comfort/install.ps1 | 4 ++-- src/wsl-comfort/readme.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wsl-comfort/install.ps1 b/src/wsl-comfort/install.ps1 index c8ab4637..6142480d 100644 --- a/src/wsl-comfort/install.ps1 +++ b/src/wsl-comfort/install.ps1 @@ -708,10 +708,10 @@ if ($preBootstrapUser -eq 'root' -or [string]::IsNullOrWhiteSpace($preBootstrapU Write-Host ' 2. Drop you into zsh with your dotfiles already in place' Write-Host ' 3. Install Homebrew (a few minutes, one-time)' Write-Host '' - Write-Host " Open the 'Comfort Shell $sun ($Distro)' profile in Windows Terminal to begin." -ForegroundColor Yellow + Write-Host " Open the 'Comfort Shell - $Distro' profile in Windows Terminal to begin." -ForegroundColor Yellow } else { Write-Host '' - Write-Host " Open the 'Comfort Shell $sun ($Distro)' profile in Windows Terminal." -ForegroundColor Yellow + Write-Host " Open the 'Comfort Shell - $Distro' profile in Windows Terminal." -ForegroundColor Yellow Write-Host " You're already a regular user ($preBootstrapUser); no further setup needed." -ForegroundColor DarkGray } Write-Host '' diff --git a/src/wsl-comfort/readme.md b/src/wsl-comfort/readme.md index 021cf5d7..c848e639 100644 --- a/src/wsl-comfort/readme.md +++ b/src/wsl-comfort/readme.md @@ -217,7 +217,7 @@ This is what makes the Windows-side flow work on a freshly installed distro that | **Windows Terminal required** | The script hard-fails if `wt.exe` is not on PATH. A Comfort Shell without a WT profile would be half the experience, so we don't degrade. | | **WSL install requires a reboot** | First-time WSL installs always reboot. The script registers RunOnce and offers to reboot for you; cancelling the countdown is fine — the auto-resume will fire after any subsequent logon. | | **Ubuntu only** | Both halves bail on non-Ubuntu distros. Debian would mostly work but is untested; other families would not. | -| **`wsl -l -q` UTF-16 quirk** | `wsl.exe --list --quiet` emits UTF-16LE with embedded NUL bytes. The script strips NULs in `Get-WslSupportedDistros`; do the same in any new code that parses `wsl -l -q`. | +| **`wsl -l -q` UTF-16 quirk** | `wsl.exe --list --quiet` emits UTF-16LE with embedded NUL bytes. The script strips NULs in `Get-InstalledWslDistros`; do the same in any new code that parses `wsl -l -q`. | | **Homebrew in CI/skel** | Homebrew's installer probes for a real user. In skel mode we defer brew to the first interactive shell; the first user pays a one-time multi-minute cost on first login (logged to `~/.comfort-shell-install.log`). | | **Clipboard / `open` shims are best-effort** | `pbpaste` strips `\r` from `Get-Clipboard` output; complex clipboard payloads (images, multi-format) won't round-trip. `open` uses `wslpath -w` for files and falls back to passing the raw target for URLs. | | **`chsh` requires logout** | After the first run, `echo $SHELL` won't reflect zsh until you start a fresh login shell. The Windows Terminal "Comfort Shell" profile starts a fresh shell, so just open it. |