mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 19:55:08 +01:00
git aliases
This commit is contained in:
parent
71cf0be647
commit
842e6575e1
2 changed files with 8 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ in
|
||||||
'';
|
'';
|
||||||
shellAbbrs = {
|
shellAbbrs = {
|
||||||
flamegraph = "perf script | inferno-collapse-perf | inferno-flamegraph > out.svg && firefox out.svg";
|
flamegraph = "perf script | inferno-collapse-perf | inferno-flamegraph > out.svg && firefox out.svg";
|
||||||
|
g = "git";
|
||||||
};
|
};
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
x = "CARGO_MOMMYS_ACTUAL=${lib.getExe customPkgs.x} ${lib.getExe customPkgs.cargo-mommy}";
|
x = "CARGO_MOMMYS_ACTUAL=${lib.getExe customPkgs.x} ${lib.getExe customPkgs.cargo-mommy}";
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,13 @@
|
||||||
userName = "Nilstrieb";
|
userName = "Nilstrieb";
|
||||||
|
|
||||||
aliases = {
|
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)\"";
|
hardupdate = "!git fetch && git reset --hard \"origin/$(git rev-parse --abbrev-ref HEAD)\"";
|
||||||
fpush = "push --force-with-lease";
|
fpush = "push --force-with-lease";
|
||||||
resq = "rebase --autosquash -i";
|
resq = "rebase --autosquash -i";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue