Add git aliases

wip
Bo Jeanes 2024-07-16 23:52:46 +10:00
parent 8119c1d6cf
commit c21a52b0f9
1 changed files with 8 additions and 1 deletions

View File

@ -168,9 +168,16 @@
programs.git = { programs.git = {
enable = true; enable = true;
aliases = { aliases = {
c = "commit"; br = "branch";
c = "commit -v";
co = "checkout"; co = "checkout";
commit = "commit -v";
lg = "log --decorate --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative";
st = "status"; st = "status";
unadd = "reset HEAD";
me = "!sh -c 'echo `git config user.name` \\<`git config user.email`\\>'";
mine = "!sh -c 'git lg --author=\"`git me`\"'";
}; };
}; };
programs.starship.enable = true; programs.starship.enable = true;