1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 22:22:09 +02:00
tldr/pages/common/gh-completion.md
Vitor Henrique 46a054215a
pages*: make help and version commands comply with the style guide (#12107)
* pages*: use generic word for help

* git: add newline to the end

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* pages*: make help and version commands comply with the style guide

* java: fix Java name

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-30 12:55:24 +08:00

20 lines
483 B
Markdown

# 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}}`
- Display the subcommand help:
`gh completion`