gh-completion

Generate shell completion scripts for GitHub CLI commands.

TLDR

Display the subcommand help

$ gh completion
copy

Print a completion script

$ gh completion --shell [bash|zsh|fish|powershell]
copy

Append the gh completion script to ~/.bashrc

$ gh completion --shell [bash] >> [~/.bashrc]
copy

Append the gh completion script to ~/.zshrc

$ gh completion --shell [zsh] >> [~/.zshrc]
copy

Copied to clipboard
Earn up to $40 for learning about crypto currencies