diff --git a/home/terminal/programs/git.nix b/home/terminal/programs/git.nix index ee59e73..9d29f3b 100644 --- a/home/terminal/programs/git.nix +++ b/home/terminal/programs/git.nix @@ -15,4 +15,36 @@ programs.lazygit = { enable = true; }; + + home.shellAliases = { + g = "git"; + gs = "git status"; + gsh = "git show HEAD"; + gshs = "DELTA_FEATURES=+side-by-side git show HEAD"; + ga = "git add"; + gaa = "git add :/"; + gap = "git add -p"; + gc = "git commit"; + gca = "git commit --amend"; + gcm = "git commit --message"; + gcf = "git commit --fixup"; + gk = "git checkout"; + gkp = "git checkout -p"; + gd = "git diff"; + gds = "DELTA_FEATURES=+side-by-side git diff"; + gdc = "git diff --cached"; + gdcs = "DELTA_FEATURES=+side-by-side git diff --cached"; + gf = "git fetch"; + gl = "git log"; + glp = "git log -p"; + glps = "DELTA_FEATURES=+side-by-side git log -p"; + gp = "git push"; + gpf = "git push --force-with-lease"; + gr = "git reset"; + gra = "git reset :/"; + grp = "git reset -p"; + gt = "git stash"; + gtp = "git stash pop"; + gu = "git pull"; + }; }