git aliases

This commit is contained in:
nora 2023-11-27 19:24:42 +01:00
parent 71cf0be647
commit 842e6575e1
2 changed files with 8 additions and 1 deletions

View file

@ -51,7 +51,7 @@ in
'';
shellAbbrs = {
flamegraph = "perf script | inferno-collapse-perf | inferno-flamegraph > out.svg && firefox out.svg";
g = "git";
};
shellAliases = {
x = "CARGO_MOMMYS_ACTUAL=${lib.getExe customPkgs.x} ${lib.getExe customPkgs.cargo-mommy}";

View file

@ -6,6 +6,13 @@
userName = "Nilstrieb";
aliases = {
# simple aliases
s = "status";
rc = "rebase --continue";
ra = "rebase --abort";
# complex renames
# TODO: use git-revise
hardupdate = "!git fetch && git reset --hard \"origin/$(git rev-parse --abbrev-ref HEAD)\"";
fpush = "push --force-with-lease";
resq = "rebase --autosquash -i";