diff --git a/configs/git.nix b/configs/git.nix index b6f0713..e35fb27 100644 --- a/configs/git.nix +++ b/configs/git.nix @@ -29,9 +29,8 @@ in alias = { log = "log --color=never"; diff = "diff --color=always"; - pr = ''"!f() { git fetch-pr upstream $1; git checkout pr/$1; }; f"''; - fetch-pr = '' - "!f() { git fetch $1 refs/pull/$2/head:refs/remotes/pr/$2; }; f"''; + pr = ''!f() { git fetch-pr upstream $1; git checkout pr/$1; }; f''; + fetch-pr = ''!f() { git fetch $1 refs/pull/$2/head:refs/remotes/pr/$2; }; f''; }; } { push = { default = "current"; }; }