mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-03-13 06:18:54 +01:00
fish: use pr
to checkout GitHub PRs
Makes it easier to review PRs.
This commit is contained in:
parent
9ad246031f
commit
370c75d0bf
@ -150,6 +150,15 @@
|
||||
echo "Done. Reduced file size from $ORIGINAL_SIZE to $NEW_SIZE"
|
||||
'';
|
||||
|
||||
pr = # fish
|
||||
''
|
||||
if git remote | rg -q upstream
|
||||
git fetch upstream "pull/$argv/head" && git checkout FETCH_HEAD
|
||||
else
|
||||
git fetch origin "pull/$argv/head" && git checkout FETCH_HEAD
|
||||
end
|
||||
'';
|
||||
|
||||
ex = # fish
|
||||
''
|
||||
if string match -qe -- ".part1." "$argv";
|
||||
|
Loading…
Reference in New Issue
Block a user