mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-03 00:15:35 +02: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"
|
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
|
ex = # fish
|
||||||
''
|
''
|
||||||
if string match -qe -- ".part1." "$argv";
|
if string match -qe -- ".part1." "$argv";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user