From 6ecfd3a715d28dd763c4dc4cd85473f865b62d98 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Sat, 17 Oct 2026 15:38:40 -0400 Subject: [PATCH] gh: co = pr checkout instead of custom script --- gh/config.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gh/config.yml b/gh/config.yml index 2c67d30..fe19a0d 100644 --- a/gh/config.yml +++ b/gh/config.yml @@ -9,9 +9,7 @@ prompt: enabled 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") - + 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}")