Skip to content

zigcc/asdf-zig

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Packages

No packages published

Languages

  • Shell 96.3%
  • Makefile 3.7%