about summary refs log tree commit diff
path: root/hosts/home.nix
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2023-01-16 13:56:20 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2023-01-16 13:56:20 +0100
commit1a6bb078b1f5e5b860dea5e8b5e70db1b723ef74 (patch)
tree046bf1ac48ac44a6636966f65030e87ab680d551 /hosts/home.nix
parentHosts: Phobos: Add boinc service (diff)
downloadnixos-config-1a6bb078b1f5e5b860dea5e8b5e70db1b723ef74.tar.gz
nixos-config-1a6bb078b1f5e5b860dea5e8b5e70db1b723ef74.tar.bz2
nixos-config-1a6bb078b1f5e5b860dea5e8b5e70db1b723ef74.zip
Home: Add git 'pr' alias
Diffstat (limited to '')
-rw-r--r--hosts/home.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/hosts/home.nix b/hosts/home.nix
index f332c7a..2efd78d 100644
--- a/hosts/home.nix
+++ b/hosts/home.nix
@@ -117,6 +117,9 @@
         signByDefault = true;
         key = "18BE4F736F27FC190C1E1000BB3C0BC698650937";
       };
+      aliases = {
+        pr = "!f() { git fetch -fu \${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f";
+      };
       extraConfig = {
         push.autoSetupRemote = true;
         init.defaultBranch = "master";