This script installs Zig and the Zig Language Server (ZLS). You can choose to install both or just one of them.
Before running the script, ensure you have the following dependencies installed:
Bash
jq
Wget
(for downloading Zig binary)Git
(for downloading ZLS)minisign
(for verifying Zig download)
- Clone the repository or download the script.
- Make the script executable:
chomod +x install.sh
- Run the script with the desired options.
./install.sh [OPTIONS]
-
--zig-only
: Install only Zig. -
--zls-only
: Install only ZLS (Zig Language Server). -
-h
,--help
: Display the help message and exit.
Install both Zig and ZLS:
./install.sh
Install only Zig:
./install.sh --zig-only
Install only ZLS (Zig Language Server).
Note: You must have Zig installed in order to compile ZLS.
./install.sh --zls-only
Display the help message:
./install.sh --help
- This script assumes you have the necessary permissions to install software on your system.
- Make sure to run the script from a directory where you have write access.
This project is licensed under the MIT License.