GitHub CLI Auth, Alias, and Config/Generate Zsh completions

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
Generate Bash completions
Generate shell completion for Bash.
OpenIn sheetbashsame section
Generate Fish completions
Generate shell completion for Fish.
OpenIn sheetbashsame section
List aliases
List configured aliases.
OpenIn sheetbashsame section
Create an alias
Create a simple alias.
OpenIn sheetbashsame section
Create a shell alias
Create a shell-powered alias.
OpenIn sheetbashsame section
Delete an alias
Delete a configured alias.
OpenIn sheetbashsame section