Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iloveitaly/zsh-ai-completions
Shell completions are hard. Let's generate them with AI.
https://github.com/iloveitaly/zsh-ai-completions
ai completions llm shell zinit zsh
Last synced: about 1 month ago
JSON representation
Shell completions are hard. Let's generate them with AI.
- Host: GitHub
- URL: https://github.com/iloveitaly/zsh-ai-completions
- Owner: iloveitaly
- License: mit
- Created: 2024-10-03T15:50:14.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-12-13T13:25:46.000Z (about 2 months ago)
- Last Synced: 2024-12-13T14:26:20.628Z (about 2 months ago)
- Topics: ai, completions, llm, shell, zinit, zsh
- Language: Python
- Homepage: https://github.com/iloveitaly/zsh-ai-completions
- Size: 67.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# AI Generated ZSH Completions
I love zsh completions. Everyone hates generating them.
AI is perfect for doing this for us.
## Installation
```shell
zinit light iloveitaly/zsh-ai-completions
```## What Completions Are Included?
Check out the [completions](completions) directory.
## How Well Does This Work?
My main goal was replacing [zsh-completion-generator](https://github.com/RobSis/zsh-completion-generator) which is abandoned and does not work with usage information that is not generated by a specific python CLI library.
I've checked the AI generated completions against this tool and it works quite well! I haven't yet found any errors in the generated completions.
## Development
### Additional Completions
Just modify the `Makefile` run `make` and test the output. Then, please submit a PR!
Note that [Cody](http://cody.dev) is used for generating the completions since they have a nice CLI tool.
### Local Testing
Want to test out a completion locally?
```shell
fpath+=./completions
autoload -Uz compinit && compinit
```## TODO
- [ ] the company behind sqlc has a way to run code securely in the cloud, should try this for subcommands