No description
  • Zig 98.1%
  • Shell 1.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-27 20:59:38 -04:00
src remove the random "Bye bye" message 2026-10-27 20:59:38 -04:00
.gitignore update build_release.sh to create individual archives for each platform 2026-10-03 15:28:44 -04:00
build.zig rename some things for clarity 2026-10-07 13:47:30 -04:00
build.zig.zon bump 0.1.2, simplify build script 2026-10-03 15:03:16 -04:00
build_release.sh update build_release.sh to create individual archives for each platform 2026-10-03 15:28:44 -04:00
build_targets.txt cleaner release build script 2026-09-02 02:03:05 -04:00
LICENSE update LICENSE 2026-09-02 01:52:51 -04:00
README.md Update README.md 2026-10-01 01:25:58 +00:00
TODO.md update TODO.md 2026-10-21 13:26:48 -04:00

Ur

A Zig / ZLS version manager, written in Zig.

A Zig/ZLS version manager, written in zig.

Usage: ur [COMMAND] [<ARGS>]
Usage: zig [<ARGS>]
Usage: zls [<ARGS>]

Commands:
  help                    Display this help message.
  install (SPEC)?         Install SPEC.
  uninstall [SPEC]        Uninstall SPEC
  list (all|installed)?   List versions for your architecture, or all versions, or just the ones installed.
  (SPEC)? [<ARGS>]        Run program specified by SPEC, passing [<ARGS>].
  version                 Print the version of ur.

Specs:
  (zig|zls)?(-ARCH)?(-OS)?(-VERSION)?

Example

# zig, zls are both symlinked to ur
$ ls
build.zig build.zig.zon src/
$ zig build # ur will check build.zig.zon and match the version specified there
$ "$EDITOR" src/main.zig # ZLS version will match Zig version!

Installation

As of now, you need Zig to compile Ur to install Zig...

We'll have binary releases once Ur is stable enough!

git clone https://github.com/faerryn/ur.git
cd ur/
zig build --prefix "$HOME/.local" --release=fast 

Drop-in replacement

Instead of typing ur zig or using an alias (which is undetectable by some build tools), you can install a symlink or shell script shim. Ur will detect its own argv[0] being a valid SPEC and download and shim to the appropriate tool.

ln -s ur "$HOME/.local/bin/zig"

Ziggurat of Ur

A ziggurat, probably not written in Zig.

Ziggurate of Ur

By Tla2006 at English Wikipedia - Transferred from en.wikipedia to Commons., Public Domain, https://commons.wikimedia.org/w/index.php?curid=1974623