1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-30 13:47:46 +00:00
nu_scripts/modules/zvm
2025-03-09 07:36:56 -05:00
..
README.md Add Windows support for zvm module (#1053) 2025-02-21 15:39:55 -06:00
zvm.nu Allow zvm use command to install a Zig version first (#1067) 2025-03-09 07:36:56 -05:00

Zig Version Manager (zvm)

Manage several versions of Zig using your favorite shell.

Dependencies

Install and setup

Clone this repo or copy the zvm.nu file wherever you prefer to keep your Nushell scripts.

Edit your Nushell config file ($nu.config-path) and add the line:

use `~/.config/nushell/scripts/zvm.nu` *

List available Zig versions:

zvm list

Install a specific version:

zvm install master

At this point, the nightly build of Zig should be installed in ~/.local/share/zvm/.

You can then use this version:

zvm use master

A symlink to Zigs binary is created in the zvm folder: ~/.local/share/zvm/zig.
Add this to your $env.PATH to make zig accessible.

Roadmap