From e8c52175b64e2aeffa594e53f61a4b4df73eb2fa Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 14 Mar 2023 17:00:31 +0000 Subject: [PATCH] home: git: add 'root' alias --- home/git/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home/git/default.nix b/home/git/default.nix index 04d7786..c63b2c8 100644 --- a/home/git/default.nix +++ b/home/git/default.nix @@ -35,6 +35,7 @@ in pick = "log -p -G"; push-new = "!git push -u origin " + ''"$(git branch | grep '^* ' | cut -f2- -d' ')"''; + root = "git rev-parse --show-toplevel"; }; lfs.enable = true;