Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 2.14 KB

README.md

File metadata and controls

49 lines (36 loc) · 2.14 KB

rish

Zig GitHub all releases GitHub Repo stars

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

building

personal

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`

release

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