Skip to content

Instantly share code, notes, and snippets.

@michidk
Last active February 15, 2025 16:25
Show Gist options
  • Save michidk/f4ab28e80450ef20ae9e404ea1a3b54c to your computer and use it in GitHub Desktop.
Save michidk/f4ab28e80450ef20ae9e404ea1a3b54c to your computer and use it in GitHub Desktop.
How to execute command on host Windows using devcontainers powered by WSL
We need some way to communicate.
-> Files. Dont even need a mount, since WSL/Windows has access to all files by default.
Windows filesystem notify events don't work in WSL filesystem mounted to windows.
-> Need to handle all logic in WSL
WSL can execute Windows .exe in Windows context.
Solution:
```bash
yay -S watchexec
watchexec --clear --restart --debounce 1000 --watch zig-out/bin/zig-raylib.exe zig-out/bin/zig-raylib.exe
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment