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}")