From b96212241574f439b418056fa02be99f197a5380 Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Wed, 13 Jan 2021 06:25:31 -0300 Subject: [PATCH] gh-completion: add page (#5134) Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> --- pages/common/gh-completion.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/gh-completion.md diff --git a/pages/common/gh-completion.md b/pages/common/gh-completion.md new file mode 100644 index 0000000000..2c9234c72e --- /dev/null +++ b/pages/common/gh-completion.md @@ -0,0 +1,20 @@ +# gh completion + +> Generate shell completion scripts for GitHub CLI commands. +> More information: . + +- 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}}`