I've been working hard these past few weeks to create a new tool that is inspired by the pip command that downloads and installs Python packages either globally or locally for the user.
zrep, the Zsh Repository Tool, is at the moment a work in progress.
So far, I've created a good enough front end system that can download and install packages from an online repository. The back-end is still in a very pre-alpha state and is only used for testing purposes at the moment.
There will be a lot of changes in the code and functionality going forward, so there will be breakage and lots of bugs.
The idea behind this is to create an online repository of Zsh functions that other people can install and use in their scripts or in their daily lives.
For example, I've created a function that captures the command_not_found function in Zsh and routes it through my command_not_found_handler function that then runs shell_gpt (sgpt) to generate a reponse. This way I can type in anything on the command line and ChatGPT will generate an answer for me without me having to type in the sgpt command explicitly.
Here is a screenshot: