Generate shell completion for Zsh.
Section: Aliases, Extensions, and Completion
Generate Zsh completions
bash
bash
gh completion -s zsh > "${fpath[1]}/_gh"Explanation
Generate shell completion for Zsh.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Aliases, Extensions, and Completion