Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sop/wslscript
Associate .sh script files with WSL.
https://github.com/sop/wslscript
bash drag-and-drop scripting shell-script wsl
Last synced: 3 months ago
JSON representation
Associate .sh script files with WSL.
- Host: GitHub
- URL: https://github.com/sop/wslscript
- Owner: sop
- License: mit
- Created: 2019-07-18T08:31:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-16T08:07:34.000Z (4 months ago)
- Last Synced: 2024-07-16T10:34:18.399Z (4 months ago)
- Topics: bash, drag-and-drop, scripting, shell-script, wsl
- Language: Rust
- Homepage: https://sop.github.io/wslscript/
- Size: 351 KB
- Stars: 22
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - sop/wslscript - Associate .sh script files with WSL. (Rust)
README
# [WSL Script](https://sop.github.io/wslscript/)
Shell script _(.sh)_ handler for
[Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/about) _(WSL)_.Associates .sh _(or any other)_ extension to be executed in WSL.
Automatically handles Windows → Unix path conversions.
Files can be dragged and dropped to registered file icon in explorer
to pass paths as arguments.## Usage
Copy `wslscript.exe` and `wslscript_handler.dll` to a location of your choice.
These files are used to invoke WSL, so don't move them afterwards.Run `wslscript.exe` to open a setup GUI.
Enter the extension and click _Register_ button to add filetype association
into Windows registry.After registration, `.sh` files can be executed from explorer by double clicking.
Other files can be passed as path arguments by dragging and dropping them into
`.sh` file icon.Scripts are executed in the same folder where the script file is located,
ie. `$PWD` is set to script's directory.## TODO
- [ ] Optionally register for all users
## License
This project is licensed under the
[MIT License](https://github.com/sop/wslscript/blob/master/LICENSE).Icon by [Tango Desktop Project](http://tango.freedesktop.org/Tango_Desktop_Project).