https://github.com/tmyt/wslrun
Run command into wsl
https://github.com/tmyt/wslrun
Last synced: 4 months ago
JSON representation
Run command into wsl
- Host: GitHub
- URL: https://github.com/tmyt/wslrun
- Owner: tmyt
- License: mit
- Created: 2020-07-18T23:18:46.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T23:43:12.000Z (almost 5 years ago)
- Last Synced: 2025-01-11T22:18:37.584Z (6 months ago)
- Language: C++
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wslrun
Small launcher for wsl. Run argv[0] in default WSL distribution.
## usage
Copy or hardlink[^1] to WSL command name.
```
// copy
CMD> copy wslrun.exe zsh.exe
// hardlink
CMD> mklink /H zsh.exe wslrun.exe
```Run copy or symlink file.
```
CMD> zsh.exe
// launch zsh in default WSL distribution
wsl$
```## config
You can override distribution. create `wslrun.config` in same executable file directory.
```
[config]
# Your favorite distribution name
name=Debian
```## license
MIT
[^1]: Windows Explorer follows symlink and execute original executable path. It is not suitable for this program.