terminal/programs/git: add shell aliases

This commit is contained in:
Anthony Rodriguez 2024-12-02 23:07:38 +01:00
parent 1357d65442
commit 8a7c459f5e
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -15,4 +15,36 @@
programs.lazygit = { programs.lazygit = {
enable = true; 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";
};
} }