git: Add aliases

This commit is contained in:
Simon Bruder 2021-03-19 18:12:15 +01:00
parent 9ec9b078dd
commit 041262fc7a
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -47,5 +47,35 @@
};
};
};
aliases = {
ls = "log --stat";
};
};
programs.zsh.shellAliases = {
ga = "git add";
gap = "git add --patch";
gc = "git commit";
gco = "git checkout";
gcp = "git cherry-pick";
gcv = "git commit --verbose";
gd = "git diff";
gdc = "git diff --cached";
gfom = "git fetch origin master";
gl = "git log";
glp = "git log --patch";
gls = "git log --stat";
gp = "git push";
grb = "git rebase";
grbi = "git rebase -i";
grbim = "git rebase -i master";
grbm = "git rebase master";
grbom = "git rebase origin/master";
grs = "git restore";
grss = "git restore --staged";
gs = "git switch";
gsm = "git switch master";
gst = "git status";
};
}