1
0
Fork 0

Added git config

This commit is contained in:
Jan Grosser 2024-05-26 01:41:34 +02:00
parent 0dff069167
commit 14a13a1eec

View file

@ -131,6 +131,24 @@
''; '';
}; };
# git
programs.git = {
enable = true;
userName = "Jan Grosser";
userEmail = "code@jan-grosser.de";
aliases = {
# Visualizing branch topology - see https://stackoverflow.com/a/34467298
lg = "lg1";
lg1 = "lg1-specific --all";
lg2 = "lg2-specific --all";
lg3 = "lg3-specific --all";
lg1-specific = "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'";
lg2-specific = "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'";
lg3-specific = "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'";
};
};
# The fuzzy finder fzf # The fuzzy finder fzf
programs.fzf.enable = true; programs.fzf.enable = true;
programs.fzf.enableZshIntegration = true; programs.fzf.enableZshIntegration = true;