gh: fmt config
This commit is contained in:
parent
358773ea0b
commit
a74d7cbe49
1 changed files with 7 additions and 5 deletions
|
|
@ -9,9 +9,11 @@ prompt: enabled
|
||||||
pager:
|
pager:
|
||||||
# Aliases allow you to create nicknames for gh commands
|
# Aliases allow you to create nicknames for gh commands
|
||||||
aliases:
|
aliases:
|
||||||
co: >
|
co: >
|
||||||
!(ref="$(gh pr view "$1" --json 'headRefName' --jq '.headRefName')" && git fetch-branch "$ref" && git switch "$ref")
|
!(ref="$(gh pr view "$1" --json 'headRefName' --jq '.headRefName')" && git fetch-branch "$ref" && git switch "$ref")
|
||||||
prw: pr view -w
|
|
||||||
commit: >
|
prw: pr view -w
|
||||||
!(repo=$(gh repo view --json url --jq .url) && ref="${1-HEAD}" && commit=$(git rev-parse "$ref") && open "${repo}/commit/${commit}")
|
commit: >
|
||||||
|
!(repo=$(gh repo view --json url --jq .url) && ref="${1-HEAD}" && commit=$(git rev-parse "$ref") && open "${repo}/commit/${commit}")
|
||||||
|
|
||||||
version: "1"
|
version: "1"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue