Zig plugin for the asdf version manager.
As a bonus, this plugin supports installing zls as well, so zls and zig version can match exactly.
bash
,python3
,tar
, and POSIX utilities.- asdf 0.16+
After installing asdf, install the plugin by running:
asdf plugin add zig https://github.com/asdf-community/asdf-zig.git
or update an existing installation:
asdf plugin update zig
Then use asdf-zig
to manage zig:
# Show all installable versions
asdf list all zig
# Install specific version
asdf install zig 0.15.1
# or install latest tagged version with
asdf install zig latest
# Set a version globally (on your ~/.tool-versions file)
asdf set --home zig latest
# Now zig commands are available
zig version
# You can also check the ZLS version.
# It is designed to be highly compatible with the specific Zig version you installed.
zls version
Check asdf readme for more instructions on how to install & manage versions.