rish, formerly known as RunInShell, is a fast zig rewrite of RunInBash, with a login shell
consider renaming to $.exe
and moving to a directory in $env:PATH
pipes work, `
to escape windows variables and special characters
wrap command in double quotes and arguments in single quotes if something isn't working
example: "ls '/mnt/c/Program Files/'"
would not work without quotes
issues welcome
it is preferred to build rish for yourself so that you get all the speed optimizations for your computer
zig build -Dshell=zsh -Doptimize=ReleaseFast -p .\zig-out\native
cp .\zig-out\native\bin\$.exe C:\Windows\System32 # or any other directory in `$env:PATH`
zig build -Dshell=bash -Dexe-name=bash-x86_64 -Doptimize=ReleaseFast -Dtarget=x86_64-windows-gnu -Dcpu=baseline -p .\zig-out\release\bash
zig build -Dshell=bash -Dexe-name=bash-aarch64 -Doptimize=ReleaseFast -Dtarget=aarch64-windows-gnu -Dcpu=baseline -p .\zig-out\release\bash
zig build -Dshell=zsh -Dexe-name=zsh-x86_64 -Doptimize=ReleaseFast -Dtarget=x86_64-windows-gnu -Dcpu=baseline -p .\zig-out\release\zsh
zig build -Dshell=zsh -Dexe-name=zsh-aarch64 -Doptimize=ReleaseFast -Dtarget=aarch64-windows-gnu -Dcpu=baseline -p .\zig-out\release\zsh
zig build -Dshell=fish -Dexe-name=fish-x86_64 -Doptimize=ReleaseFast -Dtarget=x86_64-windows-gnu -Dcpu=baseline -p .\zig-out\release\fish
zig build -Dshell=fish -Dexe-name=fish-aarch64 -Doptimize=ReleaseFast -Dtarget=aarch64-windows-gnu -Dcpu=baseline -p .\zig-out\release\fish