gh completion
Generate shell completion scripts for GitHub CLI commands.
- 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}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).