MinecraftPublisher/zig-install
Unofficial installer and downloader for zig.
An installer script for zig, Written in Bun Javascript.
zig/
directory should be created on your
home directory.To add zig to path after running this script, You have to add this line to your rc file:
export PATH=$PATH:~/zig
Or, To ease your work, Run this:
curl https://raw.githubusercontent.com/MinecraftPublisher/zig-build/master/path.sh | $0
(This will download and run the script below)
Or, Run this script to add it directly to your rc file:
# Detect shell
echo Detecting current shell...
SHELL=""
for i in $(echo $0 | tr "/" "\n"); do
SHELL=$i
done
RC="$HOME/.${SHELL}rc"
echo RC Path: $RC
echo 'export PATH=$PATH:~/zig' >> $RC
echo Done!