1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

chore: force myself to use shorter aliases

This commit is contained in:
oddlama 2023-09-18 01:23:14 +02:00
parent 20758ffa04
commit 133fcb5f59
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

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