tldr/pages/common/gh-config.md

33 lines
647 B
Markdown
Raw Normal View History

2020-10-27 10:38:49 +00:00
# gh config
> Change configuration for GitHub cli.
> More information: <https://cli.github.com/manual/gh_config>.
- Display what Git protocol is being used:
`gh config get git_protocol`
- Set protocol to SSH:
`gh config set git_protocol {{ssh}}`
- Use `delta` in side-by-side mode as the default pager for all `gh` commands:
`gh config set pager '{{delta --side-by-side}}'`
2020-10-27 10:38:49 +00:00
- Set text editor to Vim:
`gh config set editor {{vim}}`
- Reset to default text editor:
`gh config set editor {{""}}`
- Disable interactive prompts:
`gh config set prompt {{disabled}}`
- Set a specific configuration value:
`gh config set {{key}} {{value}}`