Improve `git br` alias to show branch metadata

Some inspiration from https://gist.github.com/jasonrudolph/1810768 and
other places...
main
Bo Jeanes 2024-08-17 21:34:58 +10:00
parent b79fab21ea
commit 992987c5e5
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -314,7 +314,10 @@
programs.git = {
enable = true;
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";
co = "checkout";
commit = "commit -v";