1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-12-13 16:04:08 +08:00
ohmyzsh-mirror/plugins/claude
2025-11-28 19:38:58 -05:00
..
_claude This plugin provides completion for claude 2025-11-28 19:38:58 -05:00
claude.plugin.zsh This plugin provides completion for claude 2025-11-28 19:38:58 -05:00
README.md This plugin provides completion for claude 2025-11-28 19:38:58 -05:00

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:

    plugins=(
      git
      claude
    )
    
  2. Reload your shell:

    exec zsh
    

Now claude <TAB> will complete subcommands and flags on macOS, Linux, *BSD, and WSL2, because it relies only on zshs built-in completion engine and standard shell constructs.