aboutsummaryrefslogtreecommitdiff
path: root/nix/users/fcuny/git.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/users/fcuny/git.nix')
-rw-r--r--nix/users/fcuny/git.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/nix/users/fcuny/git.nix b/nix/users/fcuny/git.nix
index 5f52bef..5263155 100644
--- a/nix/users/fcuny/git.nix
+++ b/nix/users/fcuny/git.nix
@@ -8,11 +8,25 @@
programs.git = {
enable = true;
+
+ delta = {
+ enable = true;
+ options = {
+ features = "side-by-side";
+ };
+ };
+
userName = "Franck Cuny";
userEmail = "franck@fcuny.net";
aliases = {
amend = "commit --amend";
+ a = "commit --amend --no-edit";
+ st = "status";
+ co = "checkout";
+ br = "branch";
+ rb = "pull --rebase";
+ logo = "log --pretty=format:\"%C(yellow)%h%Cred%d %Creset%s%Cblue (%cn)\" --decorate";
};
# https://stackoverflow.com/questions/74012449/git-includeif-hasconfigremote-url-not-working