17 lines
926 B
YAML
17 lines
926 B
YAML
# What protocol to use when performing git operations. Supported values: ssh, https
|
|
# This will be overridden by host-level config (but that contains secrets).
|
|
git_protocol: https
|
|
# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.
|
|
editor:
|
|
# When to interactively prompt. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabled
|
|
prompt: enabled
|
|
# A pager program to send command output to, e.g. "less". Set the value to "cat" to disable the pager.
|
|
pager:
|
|
# Aliases allow you to create nicknames for gh commands
|
|
aliases:
|
|
co: >
|
|
!(ref="$(gh pr view "$1" --json 'headRefName' --jq '.headRefName')" && git fetch-branch "$ref" && git switch "$ref")
|
|
prw: pr view -w
|
|
commit: >
|
|
!(repo=$(gh repo view --json url --jq .url) && ref="${1-HEAD}" && commit=$(git rev-parse "$ref") && open "${repo}/commit/${commit}")
|
|
version: "1"
|