Run Bash and Linux Binaries on Windows
MIT License
RunBash is a handful utility that enables you to run your Bash Scripts and Linux Binarys directly from your Windows system, seamlessly integrating Linux commands into your Windows environment. Whether through Windows Explorer, Command Prompt, and PowerShell, RunBash offers a versatile and efficient way to execute Bash scripts and Binarys without the need for a separate terminal.
[!NOTE] The Batchfile Can Not Run on it's Own it needs the main exe ahead of it
wsl --install && shutdown /r
optional : wsl --set-default-version 2
if supported ! 1. Clone the Repository Git Clone https://github.com/benzaria/RunBash.git
or
2. Download the Latest Release RunBash v1.3.
RunBash can be invoked directly from the Command Prompt. Here are the basic usage instructions:
First run setup.bat
it will do all the work to make sure RunBash is setup perfectly.
- else run RunBash -Install & RunBash -GetBin
for Basic setup !
Usage:
RunBash [Wsl-Arguments] [RunBash-Arguments] <File-Path> [File-Arguments]
or after setting up
<File-Path> [File-Arguments] [RunBash-Arguments]
RunBash -Std 1 -Exit 1 -Root C:\Users\benz\sleepsort.sh
or after setting up
C:\Users\benz\sleepsort.sh -Std 1 -Exit 1 -Root
wsl --help
.-Install <install-path> <editor-path>
: Install ContextMenu and RunBash Plugins to Explorer and Cmd. Details
-GetBin <dirs>
: Gather all executable files from specified Linux directories and link them to Windows.-AddBin <name1> <cmd-para-1> ; <name2> <cmd-para-2> ;...
: Add custom commands from Linux to Windows.-RemBin <name>
: Remove specified or all linked commands from Windows.-NoWait
: Do not wait for script execution to finish.-Root
: Run the script as the root user.-Std <0-2>
: Control output display:
0
: No output1
: Display Standard output only2
: Display Standard error only-Exit <0-2>
: Control exit message display:
0
: No exit message1
: Display error code on exit2
: Display success message on exitFor a detailed guide on using RunBash, run: RunBash -Help
[!IMPORTANT] Make sure to run either the commands
runbash -addbin <name> <pkg>
orrunbash -getbin
after installing a new package 💡 Coming soon : Automatic Link after a new package install
RunBash is licensed under the MIT License
Feel free to contribute by submitting issues or pull requests. Any enhancements or bug fixes are welcome!
Special thanks to the creators of WSL for making tools like RunBash possible.