I’ve created a Zig version manager which was inspired by Bazelisk. It’s primary function is to proxy the zig binary itself so that you can always use the correct version of zig for any projects and have toolchains downloaded for you automatically.
I’ve tested with several popular projects and it’s meeting my initial goals well enough.
The project is only a few days old, so expect rough edges, but also please feel free to share your experience and ideas.
I love it There are a lot of zig version managers, but this one seems right to me.
See @matklad post The Worst Zig Version Manager for another similar idea. zig-version.txt is .zigversion with the advantage of a cross platform script that someone commits to the repository.
I just tagged v0.2.0, which brings support for Zls and some other misc features to ziege mode.
If you’re on Windows and use cmd.exe (in some cases your editor might use it even if you use pwsh yourself), then I’ve created two small batch files that you can use instead of creating symlinks.