System Grab Bag

View all TLDR pages from common (or from all pages)

gh completion

Generate shell completion scripts for GitHub CLI commands. More information: https://cli.github.com/manual/gh_completion.
  • Display the subcommand help:
    gh completion
  • Print a completion script:
    gh completion --shell {{bash|zsh|fish|powershell}}
  • Append the gh completion script to ~/.bashrc:
    gh completion --shell {{bash}} >> {{~/.bashrc}}
  • Append the gh completion script to ~/.zshrc:
    gh completion --shell {{zsh}} >> {{~/.zshrc}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.