config: changed git lg-inline to git lgi
git lg(i) now always uses sed to display clearer GPG verification messages. The only difference between the two aliases now being that git lg always displays its result in a pager
This commit is contained in:
parent
ec590411d6
commit
77d99ff655
22
config
22
config
|
@ -27,10 +27,14 @@
|
||||||
useConfigOnly = true
|
useConfigOnly = true
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
lg-inline = "log --graph --branches --all --date=human --color --format='%C(bold dim green)%h%C(auto) - %C(yellow)%<(12)%cr %C(bold)→%C(reset) %s%C(dim white) - %an %C(bold green)<sig>%G?</sig>%GS%C(reset cyan)%d%C(reset)'"
|
ck = "checkout"
|
||||||
|
s = "status"
|
||||||
|
|
||||||
|
# custom git log (inline)
|
||||||
# sed part courtesy of: https://stackoverflow.com/a/32038784
|
# sed part courtesy of: https://stackoverflow.com/a/32038784
|
||||||
lg = "!f() { \
|
lgi = "!f() { \
|
||||||
git lg-inline $@ |\
|
git log --graph --branches --all --date=human --color $@ \
|
||||||
|
--format='%C(bold dim green)%h%C(auto) - %C(yellow)%<(12)%cr %C(bold)→%C(reset) %s%C(dim white) - %an %C(bold green)<sig>%G?</sig>%GS%C(reset cyan)%d%C(reset)' | \
|
||||||
sed \
|
sed \
|
||||||
-e 's#<sig>G</sig>#Good Signature: #' \
|
-e 's#<sig>G</sig>#Good Signature: #' \
|
||||||
-e 's#<sig>B</sig>#\\x1b[31mBAD#' \
|
-e 's#<sig>B</sig>#\\x1b[31mBAD#' \
|
||||||
|
@ -39,11 +43,15 @@
|
||||||
-e 's#<sig>Y</sig>#\\x1b[33mExpired Key#' \
|
-e 's#<sig>Y</sig>#\\x1b[33mExpired Key#' \
|
||||||
-e 's#<sig>R</sig>#\\x1b[31mRevoked#' \
|
-e 's#<sig>R</sig>#\\x1b[31mRevoked#' \
|
||||||
-e 's#<sig>E</sig>#\\x1b[33mMissing Key#' \
|
-e 's#<sig>E</sig>#\\x1b[33mMissing Key#' \
|
||||||
-e 's#<sig>N</sig>##' | \
|
-e 's#<sig>N</sig>##'; \
|
||||||
|
}; f"
|
||||||
|
|
||||||
|
# custom git log (always opens in pager)
|
||||||
|
lg = "!f() { \
|
||||||
|
git lgi $@ | \
|
||||||
less -cr; \
|
less -cr; \
|
||||||
}; f"
|
}; f"
|
||||||
ck = "checkout"
|
|
||||||
s = "status"
|
|
||||||
# Inspired by, then evolved from:
|
# Inspired by, then evolved from:
|
||||||
# https://www.micah.soy/posts/setting-up-git-identities/
|
# https://www.micah.soy/posts/setting-up-git-identities/
|
||||||
identity = "!~/.config/git/scripts/identity.sh"
|
identity = "!~/.config/git/scripts/identity.sh"
|
||||||
|
|
Loading…
Reference in a new issue