A simple Fisher plugin for fish shell that contains functions for updating Zig and ZLS under MacOS.
Consists of 2 functions:
- zig_update - checks if current Zig version is equal to a latest master,
if not installs it in
/usr/local/zigwith a symlink to/usr/local/bin/zig. Requires sudo elevation. - zls_update - retrieves a Zig version installed and gets a latest ZLS
corresponding to that version. Installs to
/usr/local/bin/zls. Requires sudo elevation.
For now it works for MacOS only, support for other architectures is on the roadmap.
- Install Fisher plugin manager
- Install this plugin with
fisher install gren236/zig-updater