mirror of
https://github.com/johan0A/zig-installation-manager.git
synced 2026-11-17 01:50:50 +00:00
Zim is a cli tool to download and manages multiple versions of zig and zls.
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| README.md | ||
ZIM - Zig installation manager
Zim is a cli tool to download and manage multiple versions of zig and zls.
info: Usage: zim <command> [args]
Commands:
install, i Download a Zig version
use, u Select an installed version
list, ls List installed zig versions
remove, rm Delete a installed version
help, h Show this message
General options:
-h, --help Show command-specific usage
Usage: zim install <version> [options]
Fetch a version of Zig (and optionally ZLS) and select it
as the active version. <version> is a semver like `0.14.1`
or `master`.
Options:
--zls Also install ZLS
--force Re-install if already present
-h, --help Show this help
> zim i 0.16.0 --zls
[3] zim
├─ installing zig-x86_64-linux-0.16.0.tar.xz from https://zig-mirror.tsimnet.eu/zig
└─ [84/100] extract
Installation
Downlaod the Zim executable from the release page or compile from source. Place
the zim executable somewhere on your PATH.
Add the symlink directory to your PATH:
export PATH="/path/to/zim-data/bin:$PATH"
The zim-data directory is created next to the zim executable and holds all
fetched versions and the active symlinks.
Autocomplete
Zim ships with a built-in completion provider. To use completion add the appropriate lines to your shell's startup file.
Bash
complete -C 'zim bash-complete' zim
Add it to ~/.bashrc (Linux) or ~/.bash_profile (macOS).
Zsh
autoload -U +X bashcompinit && bashcompinit
complete -C 'zim bash-complete' zim
Add it to ~/.zshrc. This is the right setup for the default shell on macOS.
PowerShell
zim powershell-complete-script | Out-String | Invoke-Expression
Add it to $PROFILE. If if $PROFILE doesnt exist first create it with with New-Item -Force $PROFILE.