49 lines
1.2 KiB
Markdown
49 lines
1.2 KiB
Markdown
---
|
|
title: Completion script
|
|
state: completed
|
|
---
|
|
|
|
Read the AGENTS.md and README.md to get understanding of the project.
|
|
|
|
In the `usage.md` file, I have completion section. Instead of showing the completion scripts I want you to add a new command: `setup-completion`.
|
|
|
|
The command shows the completion instructions. Here is an example of `opencode`:
|
|
|
|
```bash
|
|
|
|
[main][~/dotfiles]$ opencode completion
|
|
#compdef opencode
|
|
###-begin-opencode-completions-###
|
|
#
|
|
# yargs command completion script
|
|
#
|
|
# Installation: opencode completion >> ~/.zshrc
|