WSL Mac Comfort Shell
April 13, 2026 ยท View on GitHub
Make WSL on Windows feel familiar to macOS developers.
Give this to your agent
Use this repo as an automation tool.
- Open
feed-this-to-your-agent.md. - Paste it into your coding agent.
- Let the agent ask your preferences and run the setup.
Fast path:
.\mac-my-wsl.ps1 -Interactive
Details for humans
What is in this repo
mac-my-wsl.ps1- Windows-side orchestrator (interactive + profile-driven).wsl-mac-comfort-bootstrap.sh- Linux bootstrap for WSL distro setup.install-terminal-fragment.ps1- Windows Terminal profile fragment installer.feed-this-to-your-agent.md- Copy/paste instructions for agents.
Manual usage (no agent)
wsl -l -q
.\mac-my-wsl.ps1 -Distro <YourDistroName>
Preview first:
.\mac-my-wsl.ps1 -Distro <YourDistroName> -BootstrapArgs "--dry-run"
Apply Windows-side options too:
.\mac-my-wsl.ps1 -Distro <YourDistroName> `
-InstallTerminalFragment `
-ConfigurePowerShellKeyboard
Visual walkthrough (Windows Terminal profile)
-
Open Windows Terminal settings and select your Ubuntu profile.

-
Update font and appearance settings for a Mac-like look.

-
Confirm profile colors and cursor settings.

Reusable profiles
Create/save with interactive mode:
.\mac-my-wsl.ps1 -Interactive -ProfilePath .\profiles\my-setup.json
Reuse later:
.\mac-my-wsl.ps1 -ProfilePath .\profiles\my-setup.json
Bootstrap flags
Pass through with -BootstrapArgs:
--dry-run--minimal--no-brew--force
Example:
.\mac-my-wsl.ps1 -Distro <YourDistroName> -BootstrapArgs "--minimal,--no-brew"
Keyboard comforts
PowerShell (added by -ConfigurePowerShellKeyboard):
Set-PSReadLineKeyHandler -Chord Alt+Backspace -Function BackwardKillWord
Set-PSReadLineKeyHandler -Chord Ctrl+u -Function BackwardKillLine
Alt+Backspace-> delete previous wordCtrl+u-> clear line to the leftCtrl+Backspace-> delete previous word (already default)
Note: Win+Backspace is handled by Windows before shells receive it. If you want Cmd-like behavior from a Mac keyboard, use PowerToys Keyboard Manager to remap keys.

Troubleshooting
- Slow typing in zsh often comes from
zsh-syntax-highlighting. - Try bootstrap with
--minimalto skip extra plugins. - Keep repos in
~/src(inside Linux filesystem) for better performance.
Prereqs
- WSL installed and working (
wsl --status) - Ubuntu or Debian distro installed
- Windows Terminal (recommended)
- User in distro with sudo access