mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-19 02:02:32 +01:00
This plugin provides completion for claude
This commit is contained in:
parent
beadd56dd7
commit
e7bc587a0b
3 changed files with 287 additions and 0 deletions
28
plugins/claude/README.md
Normal file
28
plugins/claude/README.md
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
## Zsh completion function `_claude`
|
||||
|
||||
This version aims to be:
|
||||
|
||||
- Pure zsh (no jq, sed, awk, etc.).
|
||||
- Generous with known subcommands and options from public Claude Code CLI docs/cheatsheets.[2][3]
|
||||
- Extensible via simple arrays.
|
||||
|
||||
|
||||
## How to enable in Oh My Zsh
|
||||
|
||||
1. In `~/.zshrc`, add `claude` to plugins:
|
||||
|
||||
```zsh
|
||||
plugins=(
|
||||
git
|
||||
claude
|
||||
)
|
||||
```
|
||||
|
||||
2. Reload your shell:
|
||||
|
||||
```zsh
|
||||
exec zsh
|
||||
```
|
||||
|
||||
Now `claude <TAB>` will complete subcommands and flags on macOS, Linux, *BSD, and WSL2, because it relies only on zsh’s built-in completion engine and standard shell constructs.
|
||||
***
|
||||
Loading…
Add table
Add a link
Reference in a new issue