forked from mirrors_public/oddlama_nix-config
chore: force myself to use shorter aliases
This commit is contained in:
parent
20758ffa04
commit
133fcb5f59
1 changed files with 3 additions and 6 deletions
|
@ -19,21 +19,18 @@
|
|||
s = "status";
|
||||
tags = "tag -l";
|
||||
t = "tag -s -m ''";
|
||||
ci = "commit -v -S";
|
||||
cam = "commit -v -S --amend";
|
||||
fixup = ''!f() { TARGET=$(git rev-parse "$1"); git commit --fixup=$TARGET ''${@:2} && EDITOR=true git rebase -i --gpg-sign --autostash --autosquash $TARGET^; }; f'';
|
||||
commit-reuse-message = ''!git commit --edit --file "$(git rev-parse --git-dir)"/COMMIT_EDITMSG'';
|
||||
cir = "commit-reuse-message -v -S";
|
||||
};
|
||||
};
|
||||
|
||||
home.shellAliases = rec {
|
||||
g = "gitui";
|
||||
ga = "git add";
|
||||
gc = "git ci";
|
||||
gca = "git ci --amend";
|
||||
gc = "git commit -v -S";
|
||||
gca = "git commit -v -S --amend";
|
||||
gcl = "git clone";
|
||||
gcr = "git cir";
|
||||
gcr = "git commit-reuse-message -v -S";
|
||||
gs = "git s";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue