From 72def5c785559608ce827726e40bfc16029737e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Mon, 1 Jul 2024 10:14:11 +0200 Subject: [PATCH] feat: add more git abbreviations --- modules/programs/git.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/programs/git.nix b/modules/programs/git.nix index 0dbd586..12171e0 100644 --- a/modules/programs/git.nix +++ b/modules/programs/git.nix @@ -29,18 +29,24 @@ in config = mkIf cfg.enable { my.shell.abbreviations = { + g = "git"; + gC = "git clone"; + gF = "git pull"; + gS = "git switch"; ga = "git add"; gap = "git add --patch"; - gr = "git restore"; - grp = "git restore --patch"; gb = "git branch"; gc = "git commit"; gco = "git checkout"; gd = "git diff"; gds = "git diff --staged"; - gp = "git push"; gf = "git fetch"; - gF = "git pull"; + gp = "git push"; + gr = "git restore"; + grm = "git rm --cached"; + grp = "git restore --patch"; + grps = "git restore --patch --staged"; + grs = "git restore --staged"; gs = "git status"; }; home-manager.users.moritz = {