gh: Alias co to use custom fetch-branch for pulling
This commit is contained in:
parent
0144cb903d
commit
7f366104fb
1 changed files with 3 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ prompt: enabled
|
|||
pager:
|
||||
# Aliases allow you to create nicknames for gh commands
|
||||
aliases:
|
||||
co: pr checkout
|
||||
prw: pr view -w
|
||||
co: >
|
||||
!(ref="$(gh pr view "$1" --json 'headRefName' --jq '.headRefName')" && git fetch-branch "$ref" && git switch "$ref")
|
||||
prw: pr view -w
|
||||
version: "1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue