From 18158940152d49b9e035783c519524531c4787ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Mon, 20 Feb 2023 21:44:31 +0100 Subject: [PATCH] git: add abbreviations --- modules/programs/git.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/programs/git.nix b/modules/programs/git.nix index c3546e1..fa4fab0 100644 --- a/modules/programs/git.nix +++ b/modules/programs/git.nix @@ -31,6 +31,9 @@ in config = mkIf cfg.enable { my.shell.abbreviations = { ga = "git add"; + gap = "git add --patch"; + gr = "git restore"; + grp = "git restore --patch"; gb = "git branch"; gc = "git commit"; gco = "git checkout";