diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-01-16 13:56:20 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-01-16 13:56:20 +0100 |
commit | 1a6bb078b1f5e5b860dea5e8b5e70db1b723ef74 (patch) | |
tree | 046bf1ac48ac44a6636966f65030e87ab680d551 | |
parent | Hosts: Phobos: Add boinc service (diff) | |
download | nixos-config-1a6bb078b1f5e5b860dea5e8b5e70db1b723ef74.tar.gz nixos-config-1a6bb078b1f5e5b860dea5e8b5e70db1b723ef74.tar.bz2 nixos-config-1a6bb078b1f5e5b860dea5e8b5e70db1b723ef74.zip |
Home: Add git 'pr' alias
-rw-r--r-- | hosts/home.nix | 3 |
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"; |