git: Add aliases

pull/48/head
Simon Bruder 2021-03-19 18:12:15 +01:00
parent 9ec9b078dd
commit 041262fc7a
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 30 additions and 0 deletions

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";
};
}