Options (1)
-s, --shellbooleanPrint a completion script
Example:
gh completion {{[-s|--shell]}} {{bash|zsh|fish|powershell}}Examples (4)
Print a completion script
gh completion [-s|--shell] bash|zsh|fish|powershellAppend the `gh` completion script to `~/.bashrc`
gh completion [-s|--shell] bash >> ~/.bashrcAppend the `gh` completion script to `~/.zshrc`
gh completion [-s|--shell] zsh >> ~/.zshrcDisplay the subcommand help
made by @shridhargupta | data from tldr-pages