From 137c17b0e2a7807099be97459c47ff196dd1941b Mon Sep 17 00:00:00 2001 From: fleaz Date: Tue, 25 Oct 2022 15:28:22 +0200 Subject: [PATCH] modules/git: autoPushRemote and ignore .direnv --- home-manager/modules/git.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home-manager/modules/git.nix b/home-manager/modules/git.nix index 5e89486..020f42d 100644 --- a/home-manager/modules/git.nix +++ b/home-manager/modules/git.nix @@ -6,6 +6,7 @@ "*.sql" "*.sql.gz" "*.sql.zst" + ".direnv/" ]; userName = "fleaz"; userEmail = "mail@felixbreidenstein.de"; @@ -20,10 +21,14 @@ "pull" = { rebase = "true"; }; + "push" = { + autoSetupRemote = "true"; + }; }; aliases = { + # checkout-pull-request from GitHub cpr = "!f() { git fetch origin refs/pull/$1/head && git checkout FETCH_HEAD; }; f"; };