2021-01-13 09:25:31 +00:00
|
|
|
# gh completion
|
|
|
|
|
|
|
|
> Generate shell completion scripts for GitHub CLI commands.
|
|
|
|
> More information: <https://cli.github.com/manual/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}}`
|
2024-01-30 04:55:24 +00:00
|
|
|
|
|
|
|
- Display the subcommand help:
|
|
|
|
|
|
|
|
`gh completion`
|