Watch
1
0
Fork
You've already forked dotfiles
0
dotfiles/gh/config.yml

17 lines
826 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: pr checkout
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"