1
0
Fork 0
dotfiles/gh/config.yml
2025-01-13 11:21:58 -05:00

15 lines
777 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
version: "1"