tom-doerr / zsh_codex

This is a ZSH plugin that enables you to use OpenAI's Codex AI in the command line.
MIT License
1.35k stars 62 forks source link

Support zinit zsh plugin system #14

Open poetaman opened 2 years ago

poetaman commented 2 years ago

Please add support for zinit plugin system: https://github.com/zdharma-continuum/zinit. Thanks a lot for this amazing project!

tom-doerr commented 2 years ago

Thanks for the issue, I should add support for other plugin managers. In the meantime you could set ZSH_CUSTOM yourself so the following code line works:

    completion=$(echo -n "$text" | $ZSH_CUSTOM/plugins/zsh_codex/create_completion.py $CURSOR)
ceuk commented 4 months ago

Just a heads up that the ZSH_CUSTOM workaround doesn't work with antibody as the default path is $XDG_CACHE_HOME/antibody/

(no plugins directory)

tom-doerr commented 3 months ago

@ceuk I know it's not perfect but you could create a zsh_custom folder that contains a symlink plugins that points to $XDG_CACHE_HOME/antibody/

ceuk commented 3 months ago

@tom-doerr that's exactly what I did end up doing :)