gh completion

Generate shell completion scripts for GitHub CLI commands. More information: https://cli.github.com/manual/gh_completion.

gh completion {{[-s|--shell]}} {{bash|zsh|fish|powershell}}

gh completion {{[-s|--shell]}} {{bash}} >> {{~/.bashrc}}

gh completion {{[-s|--shell]}} {{zsh}} >> {{~/.zshrc}}

gh completion