ay completions (Alias: completion)
Generiert Shell-Completion-Scripts für Bash, Zsh, Fish und PowerShell. Standardmäßig nur Top-Level-Commands — Sub-Commands müssen via --help aufgelöst werden.
Syntax
ay completions <shell>
Shells: bash · zsh · fish · powershell (alias pwsh)
Setup
Bash
ay completions bash >> ~/.bashrc
source ~/.bashrc
Zsh
ay completions zsh >> ~/.zshrc
source ~/.zshrc
Bei Zsh muss compinit aktiv sein (in den meisten oh-my-zsh-Setups Default).
Fish
mkdir -p ~/.config/fish/completions
ay completions fish > ~/.config/fish/completions/ay.fish
PowerShell
ay completions powershell >> $PROFILE
. $PROFILE
Hinweis
Die Completion-Listen sind statisch (Hardcoded im CLI-Source) und werden bei jedem ay-Release aktualisiert. Bei neuen Commands → CLI-Update + Re-Source des RC-Files.