mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-07-30 13:47:46 +00:00
.. | ||
README.md | ||
zvm.nu |
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 Zig’s binary is created in the zvm folder: ~/.local/share/zvm/zig
.
Add this to your $env.PATH
to make zig accessible.
Roadmap
- zls support