Categories
Tools
  • Github CLI
  • SSH
  • HTTPS
Clone Repo

asdf-zig

Zig plugin for asdf version manager

Installation

First install asdf

git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0
cat <<'EOF' >> $HOME/.bashrc
source "$HOME/.asdf/asdf.sh"
source "$HOME/.asdf/completions/asdf.bash"
EOF

Then install asdf-zig

asdf plugin add zig https://github.com/zigcc/asdf-zig.git

# Update to latest if already installed
asdf plugin update zig

Then install latest Zig

asdf install zig latest
asdf global zig latest
zig version

Usage

Check asdf readme for instructions on how to install & manage versions.

Zig download mirror

As suggested in Migrating from AWS to Self-Hosting , asdf-zig will first try download from mirrors.

Currently there are(same with setup-zig):

You can also configure where to download index.json with ASDF_ZIG_INDEX_URL env var, it’s https://ziglang.org/download/index.json by default. Availables:

License

Licensed under the Apache License, Version 2.0.

About
Zig plugin for the asdf version manager
Owner
zigcc (Organization)
Last Commit
2024-11-04
Latest Release
Latest Release Date
2024-09-20
Created
2024-04-01