mirror of https://github.com/bjeanes/dotfiles.git
Add git aliases
parent
8119c1d6cf
commit
c21a52b0f9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue