mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
21 lines
483 B
Markdown
21 lines
483 B
Markdown
![]() |
# 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}}`
|