diff --git a/config b/config index 30e7b50..23b8b94 100644 --- a/config +++ b/config @@ -32,19 +32,22 @@ s = "status" # custom git log (inline) - # sed part courtesy of: https://stackoverflow.com/questions/17371955/verifying-signed-git-commits/32038784#comment124980964_32038784 lgi = "!f() { \ git log --graph --branches --all --date=human --color $@ \ - --format='%C(bold dim green)%h%C(auto) - %C(yellow)%cr %C(bold)→%C(reset) %s%C(bold black) - %an%C(reset bold yellow)%d %C(reset)%G?%C(reset dim white)%GS%C(reset)' | \ + --format='%C(bold dim green)%h%C(auto) - %C(yellow)%cr %C(bold)→%C(reset) %s%C(reset bold yellow)%d %an %G? %GS %C(reset)' | \ sed \ - -e 's#G#\\x1b[1;32mGood Signature: #' \ + -e 's#\\(.*\\) N .*#\\x1b[0;2;3m- \\1#' \ + \ + -e 's#.* \\([^N]\\)#\\1#' \ + -e 's#\\(.*\\)#\\x1b[0;2;3m\\1#' \ + \ + -e 's#G#\\x1b[0;1;32mGood Signature:#' \ -e 's#B#\\x1b[1;31mBAD#' \ -e 's#U#\\x1b[1;33mUnknown Trust: #' \ - -e 's#X#\\x1b[1;32mGood (later expired)#' \ + -e 's#X#\\x1b[1;32mGood (expired since)#' \ -e 's#Y#\\x1b[1;33mExpired Key#' \ -e 's#R#\\x1b[1;31mRevoked#' \ - -e 's#E#\\x1b[1;33mMissing Key#' \ - -e 's#N##'; \ + -e 's#E#\\x1b[1;33mMissing Key#'; \ }; f" # custom git log (always opens in pager)