Fixing Zsh Autocompletion for Workflow Script | Generated by AI

Home 2026.06

That’s expected — the terminal uses bash, not zsh. You’ll need to reload in your zsh: autoload -Uz compinit && compinit.

Here’s what I changed:

ww/action/action.py — rewrote to use argparse with defaults:

ww/main.py — updated help text to show [workflow.yml] (optional) instead of <workflow.yml> (required).

~/.zsh/completions/_ww — added action) case with --repo, --ref completions and .yml file glob.


Back Donate