mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 13:46:00 +02:00
gh-completion: add page (#5134)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
This commit is contained in:
parent
b92f1b9edd
commit
b962122415
1 changed files with 20 additions and 0 deletions
20
pages/common/gh-completion.md
Normal file
20
pages/common/gh-completion.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue