Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.41 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.41 KB

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.