gh: Add commit alias
This commit is contained in:
parent
4dc7aee607
commit
a8f7d182cd
1 changed files with 2 additions and 0 deletions
|
|
@ -12,4 +12,6 @@ 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
|
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"
|
version: "1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue