mirror of https://github.com/bjeanes/dotfiles.git
Improve `git br` alias to show branch metadata
Some inspiration from https://gist.github.com/jasonrudolph/1810768 and other places...wip
parent
b79fab21ea
commit
992987c5e5
|
@ -314,7 +314,10 @@
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
aliases = {
|
aliases = {
|
||||||
br = "branch";
|
br = "branch --format='%(color:red)%(committerdate:iso8601)%(color:reset) %(align:8)(%(ahead-behind:HEAD))%(end) %(color:blue)%(align:40)%(refname:short)%(end)%(color:reset) %(color:white)%(contents:subject) %(color:yellow)(%(committerdate:relative))%(color:reset)' --sort=-creatordate";
|
||||||
|
oldestb = "br --sort=committerdate";
|
||||||
|
newestb = "br --sort=-committerdate";
|
||||||
|
|
||||||
c = "commit -v";
|
c = "commit -v";
|
||||||
co = "checkout";
|
co = "checkout";
|
||||||
commit = "commit -v";
|
commit = "commit -v";
|
||||||
|
|
Loading…
Reference in New Issue